Skip to content

Commit

Permalink
Remove unnecessary features from sidebar
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
ImJustChew committed Dec 10, 2024
1 parent 43e94e0 commit cce6ccb
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/MemberLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <div className="min-h-screen w-screen pb-12 sm:pb-0 sm:grid grid-cols-[14rem_1fr] gap-1 max-w-[84rem] sm:px-4">
Expand Down Expand Up @@ -96,4 +90,4 @@ const MemberLayout: FC<{children: React.ReactChild | React.ReactChildren}> = (
</div>
}

export default MemberLayout;
export default MemberLayout;

1 comment on commit cce6ccb

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for cecv3 ready!

✅ Preview
https://cecv3-rv65qlt47-chew-tzi-hwees-projects.vercel.app

Built with commit cce6ccb.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.