Skip to content

Commit 575f7c0

Browse files
committed
Layout fixes.
1 parent 500ac4b commit 575f7c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

demos/diagnostics-app/src/app/views/layout.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export default function ViewsLayout({ children }: { children: React.ReactNode })
116116
onClick={async () => {
117117
await item.beforeNavigate?.();
118118
navigate(item.path);
119-
// setOpenDrawer(false);
119+
setMobileOpen(false);
120120
}}>
121121
<ListItemIcon>{item.icon()}</ListItemIcon>
122122
<ListItemText primary={item.title} />
@@ -172,7 +172,9 @@ export default function ViewsLayout({ children }: { children: React.ReactNode })
172172
sx={{
173173
display: { xs: 'block', md: 'none' },
174174
'& .MuiDrawer-paper': { boxSizing: 'border-box', width: drawerWidth }
175-
}}></Drawer>
175+
}}>
176+
{drawer}
177+
</Drawer>
176178
<Drawer
177179
variant="permanent"
178180
sx={{

0 commit comments

Comments
 (0)