Skip to content

Commit

Permalink
members link
Browse files Browse the repository at this point in the history
  • Loading branch information
ap-justin committed Jan 10, 2024
1 parent 7bff953 commit e27f61a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/Icon/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import {
IoClose,
IoCloseCircle,
IoCrop,
IoPeople,
IoWalletSharp,
IoWarning,
} from "react-icons/io5";
Expand Down Expand Up @@ -138,6 +139,7 @@ export const icons = {
Up: VscTriangleUp,
Upload: AiOutlineUpload,
User: FaUserCircle,
Users: IoPeople,
Wallet: IoWalletSharp,
Warning: IoWarning,
Widget: MdWidgets,
Expand Down
1 change: 1 addition & 0 deletions src/constants/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const adminRoutes = {
banking: "banking",
widget_config: "widget-config",
donations: "donations",
members: "members",
} as const;

export enum regRoutes {
Expand Down
5 changes: 4 additions & 1 deletion src/pages/Admin/Charity/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ export default function Charity() {
linkGroups={[
{ links: [LINKS.dashboard, LINKS.donations] },
{ title: "Profile", links: [LINKS.edit_profile, LINKS.programs] },
{ title: "Manage", links: [LINKS.banking, LINKS.widget_config] },
{
title: "Manage",
links: [LINKS.members, LINKS.banking, LINKS.widget_config],
},
]}
/>
}
Expand Down
9 changes: 9 additions & 0 deletions src/pages/Admin/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,15 @@ export const LINKS: {
size: 24,
},
},
members: {
title: "Members",
to: "members",
icon: {
type: "Users",
size: 24,
},
},

banking: {
title: "Banking",
to: sidebarRoutes.banking,
Expand Down

0 comments on commit e27f61a

Please sign in to comment.