Enhance tenant admin routing by adding Modules component to the routes configuration. Clean up comments and ensure consistent structure across route definitions.
This commit is contained in:
parent
bb5a086110
commit
45bdc24ee2
19
src/pages/tenant/Modules.tsx
Normal file
19
src/pages/tenant/Modules.tsx
Normal file
@ -0,0 +1,19 @@
|
||||
import { Layout } from '@/components/layout/Layout'
|
||||
import { type ReactElement } from 'react'
|
||||
|
||||
const Modules = (): ReactElement => {
|
||||
return (
|
||||
<Layout
|
||||
currentPage="Dashboard Overview"
|
||||
pageHeader={{
|
||||
title: 'Tenant Overview',
|
||||
description: 'Key quality metrics and performance indicators.',
|
||||
}}
|
||||
>
|
||||
|
||||
<div>Modules</div>
|
||||
</Layout>
|
||||
)
|
||||
}
|
||||
|
||||
export default Modules
|
||||
@ -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: <Dashboard />, // TODO: Replace with TenantDashboard when created
|
||||
element: <Dashboard />,
|
||||
},
|
||||
{
|
||||
path: '/tenant/roles',
|
||||
element: <Roles />, // TODO: Replace with TenantDashboard when created
|
||||
element: <Roles />,
|
||||
},
|
||||
{
|
||||
path: '/tenant/users',
|
||||
element: <Users />, // TODO: Replace with TenantDashboard when created
|
||||
element: <Users />,
|
||||
},
|
||||
{
|
||||
path: '/tenant/modules',
|
||||
element: <div>Modules</div>, // TODO: Replace with TenantDashboard when created
|
||||
element: <Modules />,
|
||||
},
|
||||
{
|
||||
path: '/tenant/audit-logs',
|
||||
element: <AuditLogs />, // TODO: Replace with TenantDashboard when created
|
||||
element: <AuditLogs />,
|
||||
},
|
||||
{
|
||||
path: '/tenant/settings',
|
||||
element: <Settings />, // TODO: Replace with TenantDashboard when created
|
||||
element: <Settings />,
|
||||
},
|
||||
// Add more tenant admin routes here as needed
|
||||
// Example:
|
||||
// {
|
||||
// path: '/tenant/users',
|
||||
// element: <TenantUsers />,
|
||||
// },
|
||||
];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user