From 21a48a66ba3811d6366ec7d5aa7f09a0807aae58 Mon Sep 17 00:00:00 2001 From: akovylyaeva Date: Tue, 5 Dec 2023 12:58:42 +0500 Subject: [PATCH] feat: added compensation routes --- src/features/compensations/routes.tsx | 12 ++++++++++++ src/routes/adminRoutes.tsx | 5 +++++ src/routes/state/AccessBasedOnPemissionsState.ts | 2 ++ 3 files changed, 19 insertions(+) create mode 100644 src/features/compensations/routes.tsx diff --git a/src/features/compensations/routes.tsx b/src/features/compensations/routes.tsx new file mode 100644 index 0000000..44bda68 --- /dev/null +++ b/src/features/compensations/routes.tsx @@ -0,0 +1,12 @@ +import { ReactComponent as IconProfile } from '../../assets/icons/icon-profile.svg'; +import { ReactComponent as IconProfileActive } from '../../assets/icons/icon-profile-active.svg'; + +export const compensationsSidebarRoutes = [ + { + isWindowRedirectNecessary: true, + path: '/compensations', + label: 'Compensations', + icon: , + iconActive: , + }, +]; diff --git a/src/routes/adminRoutes.tsx b/src/routes/adminRoutes.tsx index 943a33a..cc38b0b 100644 --- a/src/routes/adminRoutes.tsx +++ b/src/routes/adminRoutes.tsx @@ -14,6 +14,7 @@ import { rolesSidebarRoutes, sidebarAccountManagement, } from '../features/account-management/routers'; +import { compensationsSidebarRoutes } from '../features/compensations/routes'; export function getAdminRoutes(accessPermissions: Map) { const routes: { @@ -58,6 +59,10 @@ export function getSidebarRoutes(accessPermissions: Map