Add buttons bar

This commit is contained in:
2025-11-28 09:55:21 +01:00
parent 9f83a6fb66
commit 94ce9c3c95
2 changed files with 39 additions and 18 deletions

View File

@@ -67,7 +67,7 @@ export default function DashboardSidebar({
const hasDrawerTransitions = isOverSmViewport && isOverMdViewport;
const getDrawerContent = React.useCallback(
(viewport: "phone" | "tablet" | "desktop") => (
(viewport: "phone" | "desktop") => (
<React.Fragment>
<Box
component="nav"
@@ -194,20 +194,7 @@ export default function DashboardSidebar({
<Drawer
variant="permanent"
sx={{
display: {
xs: "none",
sm: "block",
md: "none",
},
...getDrawerSharedSx(false),
}}
>
{getDrawerContent("tablet")}
</Drawer>
<Drawer
variant="permanent"
sx={{
display: { xs: "none", md: "block" },
display: { xs: "none", sm: "block", md: "block" },
...getDrawerSharedSx(false, true),
}}
>