From 45bdc24ee2e11b3c4ab202905155517ae212304d Mon Sep 17 00:00:00 2001 From: Yashwin Date: Thu, 29 Jan 2026 17:37:04 +0530 Subject: [PATCH] Enhance tenant admin routing by adding Modules component to the routes configuration. Clean up comments and ensure consistent structure across route definitions. --- src/pages/tenant/Modules.tsx | 19 +++++++++++++++++++ src/routes/tenant-admin-routes.tsx | 19 +++++++------------ 2 files changed, 26 insertions(+), 12 deletions(-) create mode 100644 src/pages/tenant/Modules.tsx diff --git a/src/pages/tenant/Modules.tsx b/src/pages/tenant/Modules.tsx new file mode 100644 index 0000000..ce3043d --- /dev/null +++ b/src/pages/tenant/Modules.tsx @@ -0,0 +1,19 @@ +import { Layout } from '@/components/layout/Layout' +import { type ReactElement } from 'react' + +const Modules = (): ReactElement => { + return ( + + +
Modules
+
+ ) +} + +export default Modules \ No newline at end of file diff --git a/src/routes/tenant-admin-routes.tsx b/src/routes/tenant-admin-routes.tsx index 58075dd..5c10cc4 100644 --- a/src/routes/tenant-admin-routes.tsx +++ b/src/routes/tenant-admin-routes.tsx @@ -4,6 +4,7 @@ import Settings from '@/pages/tenant/Settings'; import Users from '@/pages/tenant/Users'; import AuditLogs from '@/pages/tenant/AuditLogs'; import type { ReactElement } from 'react'; +import Modules from '@/pages/tenant/Modules'; export interface RouteConfig { path: string; @@ -14,32 +15,26 @@ export interface RouteConfig { export const tenantAdminRoutes: RouteConfig[] = [ { path: '/tenant', - element: , // TODO: Replace with TenantDashboard when created + element: , }, { path: '/tenant/roles', - element: , // TODO: Replace with TenantDashboard when created + element: , }, { path: '/tenant/users', - element: , // TODO: Replace with TenantDashboard when created + element: , }, { path: '/tenant/modules', - element:
Modules
, // TODO: Replace with TenantDashboard when created + element: , }, { path: '/tenant/audit-logs', - element: , // TODO: Replace with TenantDashboard when created + element: , }, { path: '/tenant/settings', - element: , // TODO: Replace with TenantDashboard when created + element: , }, - // Add more tenant admin routes here as needed - // Example: - // { - // path: '/tenant/users', - // element: , - // }, ];