feat(layout): enhance mobile navigation with title and improved layout structure
This commit is contained in:
@@ -6,6 +6,7 @@ import { useBoolean } from 'minimal-shared/hooks';
|
|||||||
import Box from '@mui/material/Box';
|
import Box from '@mui/material/Box';
|
||||||
import Alert from '@mui/material/Alert';
|
import Alert from '@mui/material/Alert';
|
||||||
import { useTheme } from '@mui/material/styles';
|
import { useTheme } from '@mui/material/styles';
|
||||||
|
import Typography from '@mui/material/Typography';
|
||||||
import useMediaQuery from '@mui/material/useMediaQuery';
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
||||||
|
|
||||||
import { _langs, _notifications } from 'src/_mock';
|
import { _langs, _notifications } from 'src/_mock';
|
||||||
@@ -106,12 +107,15 @@ export function DashboardLayout({
|
|||||||
</Alert>
|
</Alert>
|
||||||
),
|
),
|
||||||
leftArea: (
|
leftArea: (
|
||||||
<>
|
<Box sx={{ display: 'flex', alignItems: 'center', gap: 1.25 }}>
|
||||||
{/** @slot Nav mobile */}
|
{/** @slot Nav mobile */}
|
||||||
<MenuButton
|
<MenuButton
|
||||||
onClick={isDesktop ? onDesktopToggle : onMobileToggle}
|
onClick={isDesktop ? onDesktopToggle : onMobileToggle}
|
||||||
sx={{ mr: 1, ml: -1 }}
|
sx={{ ml: -1 }}
|
||||||
/>
|
/>
|
||||||
|
<Typography variant="h6" sx={{ fontWeight: 700 }}>
|
||||||
|
Digital Data Hub
|
||||||
|
</Typography>
|
||||||
<NavMobile
|
<NavMobile
|
||||||
data={navData}
|
data={navData}
|
||||||
open={mobileOpen}
|
open={mobileOpen}
|
||||||
@@ -119,7 +123,7 @@ export function DashboardLayout({
|
|||||||
workspaces={_workspaces}
|
workspaces={_workspaces}
|
||||||
layoutQuery={layoutQuery}
|
layoutQuery={layoutQuery}
|
||||||
/>
|
/>
|
||||||
</>
|
</Box>
|
||||||
),
|
),
|
||||||
rightArea: (
|
rightArea: (
|
||||||
<Box sx={{ display: 'flex', alignItems: 'center', gap: { xs: 0, sm: 0.75 } }}>
|
<Box sx={{ display: 'flex', alignItems: 'center', gap: { xs: 0, sm: 0.75 } }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user