update student pages,

This commit is contained in:
louiscklaw
2025-04-24 13:19:21 +08:00
parent a3d2ee57f7
commit 92040c6efb
27 changed files with 598 additions and 63 deletions

View File

@@ -136,7 +136,7 @@ export const layoutConfig = {
items: [
{ key: 'students', title: 'List students', href: paths.dashboard.students.list },
{ key: 'students:create', title: 'Create student', href: paths.dashboard.students.create },
{ key: 'students:details', title: 'Student details', href: paths.dashboard.students.details('1') },
{ key: 'students:details', title: 'Student details', href: paths.dashboard.students.view('1') },
],
},
// {

View File

@@ -30,7 +30,10 @@ export function HorizontalLayout({ children }: HorizontalLayoutProps): React.JSX
minHeight: '100%',
}}
>
<MainNav color={settings.navColor} items={layoutConfig.navItems} />
<MainNav
color={settings.navColor}
items={layoutConfig.navItems}
/>
<Box
component="main"
sx={{

View File

@@ -40,7 +40,10 @@ export function VerticalLayout({ children }: VerticalLayoutProps): React.JSX.Ele
minHeight: '100%',
}}
>
<SideNav color={settings.navColor} items={layoutConfig.navItems} />
<SideNav
color={settings.navColor}
items={layoutConfig.navItems}
/>
<Box sx={{ display: 'flex', flex: '1 1 auto', flexDirection: 'column', pl: { lg: 'var(--SideNav-width)' } }}>
<MainNav items={layoutConfig.navItems} />
<Box