Skip to content

Commit

Permalink
chore: remove unnecessary proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shurtu-gal committed Jul 21, 2023
1 parent 56dc859 commit 83b29bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
4 changes: 0 additions & 4 deletions components/navigation/MobileNavMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,3 @@ export default function MobileNavMenu({ onClickClose = () => {} }) {
</div>
);
}

MobileNavMenu.propTypes = {
onClickClose: () => {},
};
13 changes: 1 addition & 12 deletions components/navigation/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,7 @@ export default function NavBar({
useEffect(() => {
setMobileMenuOpen(false);
setOpen(null);
}, [asPath])

useEffect(() => {
mobileMenuOpen ?
document.body.style.overflow = 'hidden' :
document.body.style.overflow = 'auto';
}, [mobileMenuOpen])
}, [asPath]);

return (
<div className={`bg-white ${className} z-50`}>
Expand Down Expand Up @@ -144,8 +138,3 @@ export default function NavBar({
</div>
)
}

NavBar.propTypes = {
className: '',
hideLogo: false,
}

0 comments on commit 83b29bc

Please sign in to comment.