Skip to content

Commit

Permalink
feat: Use Logo component for mobile header
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Jun 17, 2020
1 parent 5fbbd5d commit f79be06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 4 additions & 1 deletion src/components/MobileHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'gatsby';
import cx from 'classnames';
import Logo from './Logo';
import Navigation from './Navigation';
import HamburgerMenu from './HamburgerMenu';
import styles from './MobileHeader.module.scss';
Expand All @@ -10,7 +11,9 @@ const MobileHeader = ({ className, isOpen, toggle }) => {
return (
<header className={cx(styles.container, className)}>
<div className={styles.menuBar}>
<Link to="/" className={styles.logo} />
<Link to="/">
<Logo className={styles.logo} />
</Link>

<HamburgerMenu
className={styles.hamburgerMenu}
Expand Down
5 changes: 0 additions & 5 deletions src/components/MobileHeader.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@

.logo {
width: 160px;
height: 34px;
background-size: 160px 34px;
background-repeat: no-repeat;
display: inline-block;
background-image: url('../images/developers-logo.svg');
}

.navigation {
Expand Down

0 comments on commit f79be06

Please sign in to comment.