From cce6ccbd259c4954039bd65675b5ad1c942ddab0 Mon Sep 17 00:00:00 2001 From: Chew Tzi Hwee Date: Tue, 10 Dec 2024 22:47:37 +0900 Subject: [PATCH] Remove unnecessary features from sidebar Fixes #15 Remove unnecessary feature links from the sidebar in `src/components/MemberLayout.tsx`. * Remove the link to Facility. * Remove the link to Admin (Fabrication). * Remove the link to Admin (Store Transactions). * Remove the link to Finance. * Remove the link to Inventory. * Remove the link to Store. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/cecclphs/website-v3/issues/15?shareId=XXXX-XXXX-XXXX-XXXX). --- src/components/MemberLayout.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/MemberLayout.tsx b/src/components/MemberLayout.tsx index 5435756..45f3016 100644 --- a/src/components/MemberLayout.tsx +++ b/src/components/MemberLayout.tsx @@ -51,18 +51,12 @@ const MemberLayout: FC<{children: React.ReactChild | React.ReactChildren}> = ( const links = [ { href: "/dashboard", label: "Dashboard", Icon: Home }, { href: "/profile", label: "Profile", Icon: AccountCircle }, - { href: "/facility", label: "Facility", Icon: PrecisionManufacturingTwoTone }, { label: "Admin", href: "/admin", permission: ['isAdmin'], children: [ { href: "/admin/links", label: "Links", Icon: LinkRounded }, - { href: "/admin/fabrication", label: "Fabrication", Icon: DesignServicesTwoTone }, { href: "/admin/cards", label: "Cards", Icon: CardMembershipRounded }, - { href: "/admin/store", label: "Store Transactions", Icon: StoreRounded }, ], Icon: AdminPanelSettingsRounded }, { href: "/students", label: "Students", permission: ['isAdmin'], Icon: ClassRounded }, { href: "/attendance/view", permission: ['isAdmin'], label: "Attendance", Icon: AppsTwoTone}, - { href: "/finance", permission: ['isAdmin'], label: "Finance", Icon: AccountBalanceTwoToneIcon }, - { href: "/inventory", permission: ['isAdmin'], label: "Inventory", Icon: AppsTwoTone}, - { href: "/store/storefront", label: "Store", Icon: StoreRounded }, ] return
@@ -96,4 +90,4 @@ const MemberLayout: FC<{children: React.ReactChild | React.ReactChildren}> = (
} -export default MemberLayout; \ No newline at end of file +export default MemberLayout;