Refactor dashboard sidebar
This commit is contained in:
120
src/App.tsx
120
src/App.tsx
@@ -35,6 +35,21 @@ import InvoiceDetail from "./pages/dashboard/InvoiceDetail";
|
||||
import HotelManagement from "./pages/dashboard/HotelManagement";
|
||||
import RestaurantPOS from "./pages/dashboard/RestaurantPOS";
|
||||
import Personalization from "./pages/dashboard/Personalization";
|
||||
// Hotel pages
|
||||
import HotelRooms from "./pages/dashboard/hotel/Rooms";
|
||||
import HotelCheckIn from "./pages/dashboard/hotel/CheckIn";
|
||||
import HotelRoomService from "./pages/dashboard/hotel/RoomServicePage";
|
||||
import HotelKeyless from "./pages/dashboard/hotel/KeylessAccess";
|
||||
import HotelStaff from "./pages/dashboard/hotel/Staff";
|
||||
// Restaurant pages
|
||||
import RestaurantPOS_Terminal from "./pages/dashboard/restaurant/POSPage";
|
||||
import RestaurantOrders from "./pages/dashboard/restaurant/Orders";
|
||||
import RestaurantKitchen from "./pages/dashboard/restaurant/Kitchen";
|
||||
import RestaurantBills from "./pages/dashboard/restaurant/Bills";
|
||||
import RestaurantTables from "./pages/dashboard/restaurant/Tables";
|
||||
import RestaurantMenu from "./pages/dashboard/restaurant/Menu";
|
||||
import RestaurantInventory from "./pages/dashboard/restaurant/Inventory";
|
||||
import RestaurantStaff from "./pages/dashboard/restaurant/Staff";
|
||||
import NotFound from "./pages/NotFound";
|
||||
|
||||
const queryClient = new QueryClient();
|
||||
@@ -249,6 +264,48 @@ const AppRouter = () => (
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/hotel" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<HotelManagement />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/hotel/rooms" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<HotelRooms />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/hotel/checkin" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<HotelCheckIn />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/hotel/room-service" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<HotelRoomService />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/hotel/keyless" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<HotelKeyless />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/hotel/staff" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<HotelStaff />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/restaurant-pos" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
@@ -256,6 +313,69 @@ const AppRouter = () => (
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/restaurant" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<RestaurantPOS />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/restaurant/pos" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<RestaurantPOS_Terminal />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/restaurant/orders" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<RestaurantOrders />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/restaurant/kitchen" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<RestaurantKitchen />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/restaurant/bills" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<RestaurantBills />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/restaurant/tables" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<RestaurantTables />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/restaurant/menu" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<RestaurantMenu />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/restaurant/inventory" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<RestaurantInventory />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/restaurant/staff" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
<RestaurantStaff />
|
||||
</DashboardLayout>
|
||||
</ProtectedRoute>
|
||||
} />
|
||||
<Route path="/dashboard/personalization" element={
|
||||
<ProtectedRoute>
|
||||
<DashboardLayout>
|
||||
|
||||
Reference in New Issue
Block a user