updates on the css
This commit is contained in:
@@ -31,10 +31,10 @@ const MainLayout = () => {
|
||||
|
||||
const isHorizontal = menuOrientation === MenuOrientation.HORIZONTAL && !downLG;
|
||||
|
||||
// set media wise responsive drawer
|
||||
// sidebar should default to closed regardless of screen size
|
||||
useEffect(() => {
|
||||
if (!miniDrawer) {
|
||||
dispatch(openDrawer(!matchDownXL));
|
||||
dispatch(openDrawer(false));
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [matchDownXL]);
|
||||
|
||||
Reference in New Issue
Block a user