updates
This commit is contained in:
@@ -31,6 +31,7 @@ import {
|
||||
ProtectedRoute,
|
||||
AdminRoute,
|
||||
StaffRoute,
|
||||
AccountantRoute,
|
||||
CustomerRoute
|
||||
} from './components/auth';
|
||||
|
||||
@@ -75,6 +76,10 @@ const ReceptionDashboardPage = lazy(() => import('./pages/admin/ReceptionDashboa
|
||||
const StaffDashboardPage = lazy(() => import('./pages/staff/DashboardPage'));
|
||||
const ChatManagementPage = lazy(() => import('./pages/staff/ChatManagementPage'));
|
||||
const StaffLayout = lazy(() => import('./pages/StaffLayout'));
|
||||
|
||||
const AccountantDashboardPage = lazy(() => import('./pages/accountant/DashboardPage'));
|
||||
const AccountantLayout = lazy(() => import('./pages/AccountantLayout'));
|
||||
|
||||
const NotFoundPage = lazy(() => import('./pages/NotFoundPage'));
|
||||
|
||||
function App() {
|
||||
@@ -389,6 +394,34 @@ function App() {
|
||||
/>
|
||||
</Route>
|
||||
|
||||
{/* Accountant Routes */}
|
||||
<Route
|
||||
path="/accountant"
|
||||
element={
|
||||
<AccountantRoute>
|
||||
<AccountantLayout />
|
||||
</AccountantRoute>
|
||||
}
|
||||
>
|
||||
<Route
|
||||
index
|
||||
element={<Navigate to="dashboard" replace />}
|
||||
/>
|
||||
<Route path="dashboard" element={<AccountantDashboardPage />} />
|
||||
<Route
|
||||
path="payments"
|
||||
element={<PaymentManagementPage />}
|
||||
/>
|
||||
<Route
|
||||
path="invoices"
|
||||
element={<InvoiceManagementPage />}
|
||||
/>
|
||||
<Route
|
||||
path="reports"
|
||||
element={<AnalyticsDashboardPage />}
|
||||
/>
|
||||
</Route>
|
||||
|
||||
{}
|
||||
<Route
|
||||
path="*"
|
||||
|
||||
Reference in New Issue
Block a user