Skip to content

Commit acb11c4

Browse files
author
Nidhi
committed
Add New Booking Page and Route
1 parent 07b7734 commit acb11c4

File tree

2 files changed

+450
-0
lines changed

2 files changed

+450
-0
lines changed

Slot-Booking-System-Frontend/src/App.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import Terms from './pages/Terms';
1212
import Privacy from './pages/Privacy';
1313
import Contact from './pages/Contact';
1414
import EditBooking from './pages/EditBooking';
15+
import NewBooking from './pages/NewBooking';
1516

1617
// Protected Route Component
1718
const ProtectedRoute = ({ children, user, requiredRole }) => {
@@ -102,6 +103,14 @@ function App() {
102103
</ProtectedRoute>
103104
}
104105
/>
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+
/>
105114
<Route
106115
path="/bookings/edit/:id"
107116
element={

0 commit comments

Comments
 (0)