From 9a8d00e8ff481901b8bdfb4f9ba803b22159f18d Mon Sep 17 00:00:00 2001 From: Mitchell Magro Date: Mon, 30 Jun 2025 09:17:45 +0200 Subject: [PATCH] Added more routing --- payment-iq/app/dashboard/rules/page.tsx | 7 +++++++ .../dashboard/header/dropDown/DropDown.tsx | 4 ++-- .../app/features/dashboard/sidebar/Sidebar.tsx | 4 ++-- .../dashboard/sidebar/SidebarLink.constants.ts | 18 +++++++++++------- 4 files changed, 22 insertions(+), 11 deletions(-) create mode 100644 payment-iq/app/dashboard/rules/page.tsx diff --git a/payment-iq/app/dashboard/rules/page.tsx b/payment-iq/app/dashboard/rules/page.tsx new file mode 100644 index 0000000..a3178fe --- /dev/null +++ b/payment-iq/app/dashboard/rules/page.tsx @@ -0,0 +1,7 @@ +export default function RulesPage() { + return ( +
+

Rules Overview - SSR

+
+ ); +} diff --git a/payment-iq/app/features/dashboard/header/dropDown/DropDown.tsx b/payment-iq/app/features/dashboard/header/dropDown/DropDown.tsx index b4babda..b1f4596 100644 --- a/payment-iq/app/features/dashboard/header/dropDown/DropDown.tsx +++ b/payment-iq/app/features/dashboard/header/dropDown/DropDown.tsx @@ -6,7 +6,7 @@ import { MenuItem, SelectChangeEvent, } from "@mui/material"; -import { SIDEBAR_LINKS } from "@/app/features/dashboard/sidebar/SidebarLink.constants"; +import { PAGE_LINKS } from "@/app/features/dashboard/sidebar/SidebarLink.constants"; import { ISidebarLink } from "@/app/features/dashboard/sidebar/SidebarLink.interfaces"; import PageLinks from "../../../../components/PageLinks/PageLinks"; import "./DropDown.scss"; @@ -42,7 +42,7 @@ export default function SidebarDropdown({ onChange }: Props) { Select a page
- {SIDEBAR_LINKS.map((link: ISidebarLink) => ( + {PAGE_LINKS.map((link: ISidebarLink) => ( ))}
diff --git a/payment-iq/app/features/dashboard/sidebar/Sidebar.tsx b/payment-iq/app/features/dashboard/sidebar/Sidebar.tsx index 203842b..5c43b0f 100644 --- a/payment-iq/app/features/dashboard/sidebar/Sidebar.tsx +++ b/payment-iq/app/features/dashboard/sidebar/Sidebar.tsx @@ -2,7 +2,7 @@ import React from "react"; import DashboardIcon from "@mui/icons-material/Dashboard"; -import { SIDEBAR_LINKS } from "@/app/features/dashboard/sidebar/SidebarLink.constants"; +import { PAGE_LINKS } from "@/app/features/dashboard/sidebar/SidebarLink.constants"; import PageLinks from "../../../components/PageLinks/PageLinks"; import "./sideBar.scss"; @@ -15,7 +15,7 @@ const SideBar = () => { - {SIDEBAR_LINKS.map((link) => ( + {PAGE_LINKS.map((link) => (