From b712f0f858579b39f671aba4c3cb4acb5260a2b3 Mon Sep 17 00:00:00 2001 From: Alexander Rudolph <alexr30@web.de> Date: Wed, 15 Dec 2021 17:58:44 +0100 Subject: [PATCH] add new routes for staff views --- client/src/Router.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/src/Router.tsx b/client/src/Router.tsx index 868af35..bc54d9c 100644 --- a/client/src/Router.tsx +++ b/client/src/Router.tsx @@ -1,6 +1,8 @@ import React from "react"; import { BrowserRouter, Route, Routes } from "react-router-dom"; +import StaffLayout from "./components/StaffLayout"; import UserLayout from "./components/UserLayout"; +import BoatOverview from "./pages/BoatOverview"; import BookingForm from "./pages/BookingForm"; import BookingSignOut from "./pages/BookingSignOut"; import BookingSignOutSuccess from "./pages/BookingSignOutSuccess"; @@ -31,6 +33,9 @@ function Router() { <Route path="success" element={<BookingSignOutSuccess />} /> </Route> </Route> + <Route path="staff" element={<StaffLayout />}> + <Route path="overview" element={<BoatOverview />} /> + </Route> </Routes> </BrowserRouter> ); -- GitLab