From 83b29bc6f36c6b0a6543c1cca34455ee423df99a Mon Sep 17 00:00:00 2001 From: Ashish Padhy <100484401+Shurtu-gal@users.noreply.github.com> Date: Fri, 21 Jul 2023 23:10:14 +0530 Subject: [PATCH] chore: remove unnecessary proptypes --- components/navigation/MobileNavMenu.js | 4 ---- components/navigation/NavBar.js | 13 +------------ 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/components/navigation/MobileNavMenu.js b/components/navigation/MobileNavMenu.js index dc920190e19..612e345a1c3 100644 --- a/components/navigation/MobileNavMenu.js +++ b/components/navigation/MobileNavMenu.js @@ -104,7 +104,3 @@ export default function MobileNavMenu({ onClickClose = () => {} }) { ); } - -MobileNavMenu.propTypes = { - onClickClose: () => {}, -}; \ No newline at end of file diff --git a/components/navigation/NavBar.js b/components/navigation/NavBar.js index a00400308d4..a2a005fa020 100644 --- a/components/navigation/NavBar.js +++ b/components/navigation/NavBar.js @@ -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 (