Skip to content

Commit

Permalink
chore: Correct variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
timglaser committed Jun 17, 2020
1 parent 7aeceda commit 70632a8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/Layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,19 @@ import styles from './Layout.module.scss';
import './styles.scss';

const Layout = ({ children }) => {
const [isMobileNavuOpen, setIsMobileNavOpen] = useState(false);
const [isMobileNavOpen, setIsMobileNavOpen] = useState(false);

return (
<>
<GlobalHeader />
<MobileHeader
className={styles.hideOnDesktop}
isOpen={isMobileNavuOpen}
toggle={() => setIsMobileNavOpen(!isMobileNavuOpen)}
isOpen={isMobileNavOpen}
toggle={() => setIsMobileNavOpen(!isMobileNavOpen)}
/>
<div className={styles.layout}>
<Sidebar className={styles.hideOnMobile} />
<main className={isMobileNavuOpen && styles.hideOnMobile}>
<main className={isMobileNavOpen && styles.hideOnMobile}>
{children}
</main>
</div>
Expand Down

0 comments on commit 70632a8

Please sign in to comment.