diff --git a/packages/ui/src/layout/MainLayout/index.js b/packages/ui/src/layout/MainLayout/index.js index c65de322..71ead115 100644 --- a/packages/ui/src/layout/MainLayout/index.js +++ b/packages/ui/src/layout/MainLayout/index.js @@ -68,7 +68,7 @@ const MainLayout = () => { const handleLeftDrawerToggle = () => { dispatch({ type: SET_MENU, opened: !leftDrawerOpened }) } - + useEffect(() => { setTimeout(() => dispatch({ type: SET_MENU, opened: !matchDownMd }), 0) // eslint-disable-next-line react-hooks/exhaustive-deps