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:
Yashwin 2026-01-29 17:37:04 +05:30
parent bb5a086110
commit 45bdc24ee2
2 changed files with 26 additions and 12 deletions

View 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

View File

@ -4,6 +4,7 @@ import Settings from '@/pages/tenant/Settings';
import Users from '@/pages/tenant/Users'; import Users from '@/pages/tenant/Users';
import AuditLogs from '@/pages/tenant/AuditLogs'; import AuditLogs from '@/pages/tenant/AuditLogs';
import type { ReactElement } from 'react'; import type { ReactElement } from 'react';
import Modules from '@/pages/tenant/Modules';
export interface RouteConfig { export interface RouteConfig {
path: string; path: string;
@ -14,32 +15,26 @@ export interface RouteConfig {
export const tenantAdminRoutes: RouteConfig[] = [ export const tenantAdminRoutes: RouteConfig[] = [
{ {
path: '/tenant', path: '/tenant',
element: <Dashboard />, // TODO: Replace with TenantDashboard when created element: <Dashboard />,
}, },
{ {
path: '/tenant/roles', path: '/tenant/roles',
element: <Roles />, // TODO: Replace with TenantDashboard when created element: <Roles />,
}, },
{ {
path: '/tenant/users', path: '/tenant/users',
element: <Users />, // TODO: Replace with TenantDashboard when created element: <Users />,
}, },
{ {
path: '/tenant/modules', path: '/tenant/modules',
element: <div>Modules</div>, // TODO: Replace with TenantDashboard when created element: <Modules />,
}, },
{ {
path: '/tenant/audit-logs', path: '/tenant/audit-logs',
element: <AuditLogs />, // TODO: Replace with TenantDashboard when created element: <AuditLogs />,
}, },
{ {
path: '/tenant/settings', 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 />,
// },
]; ];