Skip to content

Commit

Permalink
Merge pull request #11 from Saudigitus/fix_patch
Browse files Browse the repository at this point in the history
feat: removed menuitems in students and staff settings
  • Loading branch information
EdsonNhancale authored Sep 20, 2024
2 parents 118302b + af0e3ac commit 1707889
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 132 deletions.
132 changes: 66 additions & 66 deletions src/components/routes/RouteList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,78 +13,78 @@ export default function RouteList() {
{
path: '/',
layout: SimpleLayout,
component: () => <Navigate to="/students/program" replace />
component: () => <Navigate to="/students/wizard" replace />
},
{
path: '/students/wizard',
layout: SideBarLayout,
component: () => <StudentWizard />
},
{
path: '/students/program',
layout: SideBarLayout,
component: () => <StudentsProgram />
},
{
path: '/students/enrollment',
layout: SideBarLayout,
component: () => <StudentsEnrollment />
},
{
path: '/students/socio-economics',
layout: SideBarLayout,
component: () => <StudentsSocioEconomics />
},
{
path: '/students/attendance',
layout: SideBarLayout,
component: () => <StudentsAttendance />
},
{
path: '/students/performance',
layout: SideBarLayout,
component: () => <StudentsPerformance />
},
{
path: '/students/final-result',
layout: SideBarLayout,
component: () => <StudentsFinalResults />
},
{
path: '/students/transfer',
layout: SideBarLayout,
component: () => <StudentsTransfer />
},
{
path: '/apps/default-settings',
layout: SideBarLayout,
component: () => <DefaultSettings />
},
// {
// path: '/students/program',
// layout: SideBarLayout,
// component: () => <StudentsProgram />
// },
// {
// path: '/students/enrollment',
// layout: SideBarLayout,
// component: () => <StudentsEnrollment />
// },
// {
// path: '/students/socio-economics',
// layout: SideBarLayout,
// component: () => <StudentsSocioEconomics />
// },
// {
// path: '/students/attendance',
// layout: SideBarLayout,
// component: () => <StudentsAttendance />
// },
// {
// path: '/students/performance',
// layout: SideBarLayout,
// component: () => <StudentsPerformance />
// },
// {
// path: '/students/final-result',
// layout: SideBarLayout,
// component: () => <StudentsFinalResults />
// },
// {
// path: '/students/transfer',
// layout: SideBarLayout,
// component: () => <StudentsTransfer />
// },
// {
// path: '/apps/default-settings',
// layout: SideBarLayout,
// component: () => <DefaultSettings />
// },
{
path: '/staffs/wizard',
layout: SideBarLayout,
component: () => <StaffWizard />
},
{
path: '/staffs/program',
layout: SideBarLayout,
component: () => <StaffProgram />
},
{
path: '/staffs/enrollment',
layout: SideBarLayout,
component: () => <StaffEnrollment />
},
{
path: '/staffs/attendance',
layout: SideBarLayout,
component: () => <StaffAttendance />
},
{
path: '/staffs/transfer',
layout: SideBarLayout,
component: () => <StaffTransfer />
},
// {
// path: '/staffs/program',
// layout: SideBarLayout,
// component: () => <StaffProgram />
// },
// {
// path: '/staffs/enrollment',
// layout: SideBarLayout,
// component: () => <StaffEnrollment />
// },
// {
// path: '/staffs/attendance',
// layout: SideBarLayout,
// component: () => <StaffAttendance />
// },
// {
// path: '/staffs/transfer',
// layout: SideBarLayout,
// component: () => <StaffTransfer />
// },
{
path: '/apps/installation',
layout: SideBarLayout,
Expand All @@ -95,10 +95,10 @@ export default function RouteList() {
layout: SideBarLayout,
component: () => <AppsConfiguration />
},
{
path: '/form',
layout: SideBarLayout,
component: GenericForm
}
// {
// path: '/form',
// layout: SideBarLayout,
// component: GenericForm
// }
]
}
132 changes: 66 additions & 66 deletions src/utils/constants/sideBar/sideBarData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,48 +36,48 @@ function sideBarData(): SideBarItemProps[] {
showBadge: false,
route: "/students/wizard"
},
{
icon: settings,
label: "Program",
showBadge: false,
route: "/students/program"
},
{
icon: listAdd,
label: "Enrollment",
showBadge: false,
route: "/students/enrollment"
},
{
icon: fileDocument,
label: "Socio - economics",
showBadge: false,
route: "/students/socio-economics"
},
{
icon: glyph,
label: "Attendance",
showBadge: false,
route: "/students/attendance"
},
{
icon: performance,
label: "Performance",
showBadge: false,
route: "/students/performance"
},
{
icon: finalresult,
label: "Final result",
showBadge: false,
route: "/students/final-result"
},
{
icon: transfer,
label: "Transfer",
showBadge: false,
route: "/students/transfer"
}
// {
// icon: settings,
// label: "Program",
// showBadge: false,
// route: "/students/program"
// },
// {
// icon: listAdd,
// label: "Enrollment",
// showBadge: false,
// route: "/students/enrollment"
// },
// {
// icon: fileDocument,
// label: "Socio - economics",
// showBadge: false,
// route: "/students/socio-economics"
// },
// {
// icon: glyph,
// label: "Attendance",
// showBadge: false,
// route: "/students/attendance"
// },
// {
// icon: performance,
// label: "Performance",
// showBadge: false,
// route: "/students/performance"
// },
// {
// icon: finalresult,
// label: "Final result",
// showBadge: false,
// route: "/students/final-result"
// },
// {
// icon: transfer,
// label: "Transfer",
// showBadge: false,
// route: "/students/transfer"
// }
]
},
{
Expand All @@ -89,30 +89,30 @@ function sideBarData(): SideBarItemProps[] {
showBadge: false,
route: "/staffs/wizard"
},
{
icon: settings,
label: "Program",
showBadge: false,
route: "/staffs/program"
},
{
icon: listAdd,
label: "Staff registry",
showBadge: false,
route: "/staffs/enrollment"
},
{
icon: glyph,
label: "Attendance",
showBadge: false,
route: "/staffs/attendance"
},
{
icon: transfer,
label: "Transfer",
showBadge: false,
route: "/staffs/transfer"
}
// {
// icon: settings,
// label: "Program",
// showBadge: false,
// route: "/staffs/program"
// },
// {
// icon: listAdd,
// label: "Staff registry",
// showBadge: false,
// route: "/staffs/enrollment"
// },
// {
// icon: glyph,
// label: "Attendance",
// showBadge: false,
// route: "/staffs/attendance"
// },
// {
// icon: transfer,
// label: "Transfer",
// showBadge: false,
// route: "/staffs/transfer"
// }
]
}
]
Expand Down

0 comments on commit 1707889

Please sign in to comment.