We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07b7734 commit acb11c4Copy full SHA for acb11c4
Slot-Booking-System-Frontend/src/App.jsx
@@ -12,6 +12,7 @@ import Terms from './pages/Terms';
12
import Privacy from './pages/Privacy';
13
import Contact from './pages/Contact';
14
import EditBooking from './pages/EditBooking';
15
+import NewBooking from './pages/NewBooking';
16
17
// Protected Route Component
18
const ProtectedRoute = ({ children, user, requiredRole }) => {
@@ -102,6 +103,14 @@ function App() {
102
103
</ProtectedRoute>
104
}
105
/>
106
+ <Route
107
+ path="/bookings/new"
108
+ element={
109
+ <ProtectedRoute user={user} requiredRole={['club_admin', 'super_admin']}>
110
+ <NewBooking user={user} />
111
+ </ProtectedRoute>
112
+ }
113
+ />
114
<Route
115
path="/bookings/edit/:id"
116
element={
0 commit comments