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 (