This commit is contained in:
Iliyan Angelov
2025-11-21 15:01:24 +02:00
parent 4ab7546de0
commit 9a6190e8ef
889 changed files with 1912 additions and 57 deletions

View File

@@ -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="*"