From eca8f15b6cf377109b2a4ea2abc9d8bea74b6bea Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Fri, 6 Nov 2020 14:08:15 -0300 Subject: [PATCH] Temporary remove scoll event --- components/common/Layout/Layout.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/components/common/Layout/Layout.tsx b/components/common/Layout/Layout.tsx index a60e06203..23dbf4a23 100644 --- a/components/common/Layout/Layout.tsx +++ b/components/common/Layout/Layout.tsx @@ -33,6 +33,8 @@ const Layout: FC = ({ children, pageProps }) => { const [hasScrolled, setHasScrolled] = useState(false) const { locale = 'en-US' } = useRouter() + console.log('Layout') + usePreventScroll({ isDisabled: !(displaySidebar || displayModal), }) @@ -70,7 +72,8 @@ const Layout: FC = ({ children, pageProps }) => {
{children}