From d411aaf2d8a2c3cb3bdee2fbb4fe7097726e9f05 Mon Sep 17 00:00:00 2001 From: Henry Heng Date: Sun, 14 May 2023 19:13:21 +0100 Subject: [PATCH] Fix bug where components unclickable --- packages/ui/src/layout/MainLayout/index.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/ui/src/layout/MainLayout/index.js b/packages/ui/src/layout/MainLayout/index.js index 019e728b9..4e9f18325 100644 --- a/packages/ui/src/layout/MainLayout/index.js +++ b/packages/ui/src/layout/MainLayout/index.js @@ -59,7 +59,6 @@ const Main = styled('main', { shouldForwardProp: (prop) => prop !== 'open' })(({ const MainLayout = () => { const theme = useTheme() - const matchDownMd = useMediaQuery(theme.breakpoints.down('lg')) // Handle left drawer const leftDrawerOpened = useSelector((state) => state.customization.opened) @@ -68,11 +67,6 @@ const MainLayout = () => { dispatch({ type: SET_MENU, opened: !leftDrawerOpened }) } - //useEffect(() => { - // dispatch({ type: SET_MENU, opened: !matchDownMd }) - // // eslint-disable-next-line react-hooks/exhaustive-deps - //}, [matchDownMd]) - return (