This commit is contained in:
Iliyan Angelov
2025-11-21 22:40:44 +02:00
parent 9842cc3a4a
commit be07802066
60 changed files with 8189 additions and 9 deletions

View File

@@ -51,6 +51,7 @@ const PayPalReturnPage = lazy(() => import('./pages/customer/PayPalReturnPage'))
const PayPalCancelPage = lazy(() => import('./pages/customer/PayPalCancelPage'));
const InvoicePage = lazy(() => import('./pages/customer/InvoicePage'));
const ProfilePage = lazy(() => import('./pages/customer/ProfilePage'));
const LoyaltyPage = lazy(() => import('./pages/customer/LoyaltyPage'));
const AboutPage = lazy(() => import('./pages/AboutPage'));
const ContactPage = lazy(() => import('./pages/ContactPage'));
const PrivacyPolicyPage = lazy(() => import('./pages/PrivacyPolicyPage'));
@@ -64,12 +65,14 @@ const AdminDashboardPage = lazy(() => import('./pages/admin/DashboardPage'));
const InvoiceManagementPage = lazy(() => import('./pages/admin/InvoiceManagementPage'));
const PaymentManagementPage = lazy(() => import('./pages/admin/PaymentManagementPage'));
const UserManagementPage = lazy(() => import('./pages/admin/UserManagementPage'));
const GuestProfilePage = lazy(() => import('./pages/admin/GuestProfilePage'));
const BookingManagementPage = lazy(() => import('./pages/admin/BookingManagementPage'));
const PageContentDashboardPage = lazy(() => import('./pages/admin/PageContentDashboard'));
const AnalyticsDashboardPage = lazy(() => import('./pages/admin/AnalyticsDashboardPage'));
const BusinessDashboardPage = lazy(() => import('./pages/admin/BusinessDashboardPage'));
const SettingsPage = lazy(() => import('./pages/admin/SettingsPage'));
const ReceptionDashboardPage = lazy(() => import('./pages/admin/ReceptionDashboardPage'));
const LoyaltyManagementPage = lazy(() => import('./pages/admin/LoyaltyManagementPage'));
const StaffDashboardPage = lazy(() => import('./pages/staff/DashboardPage'));
const ChatManagementPage = lazy(() => import('./pages/staff/ChatManagementPage'));
@@ -280,6 +283,14 @@ function App() {
</ProtectedRoute>
}
/>
<Route
path="loyalty"
element={
<CustomerRoute>
<LoyaltyPage />
</CustomerRoute>
}
/>
</Route>
{}
@@ -338,6 +349,14 @@ function App() {
path="payments"
element={<PaymentManagementPage />}
/>
<Route
path="loyalty"
element={<LoyaltyManagementPage />}
/>
<Route
path="guest-profiles"
element={<GuestProfilePage />}
/>
</Route>
{}
@@ -370,10 +389,18 @@ function App() {
path="reports"
element={<AnalyticsDashboardPage />}
/>
<Route
<Route
path="chats"
element={<ChatManagementPage />}
/>
<Route
path="loyalty"
element={<LoyaltyManagementPage />}
/>
<Route
path="guest-profiles"
element={<GuestProfilePage />}
/>
</Route>
{/* Accountant Routes */}