Skip to content

Commit 302ac5b

Browse files
committed
required routes added in app.js
1 parent 951e4aa commit 302ac5b

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

client-app/src/App.js

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ function DonatedBarcodePage() {
3333
}
3434

3535
function App() {
36-
const handleAddProgram = formData => {
37-
console.log('Adding new program:', formData);
38-
};
36+
const handleAddProgram = formData => {
37+
console.log('Adding new program:', formData);
38+
};
3939

4040
return (
4141
<div
@@ -109,6 +109,19 @@ function App() {
109109
</ProtectedRoute>
110110
}
111111
/>
112+
{/* New admin review route */}
113+
<Route
114+
path="/admin/image-review"
115+
element={<AdminImageReview />}
116+
/>
117+
<Route
118+
path="/admin/image-review/:id"
119+
element={
120+
<ProtectedRoute allowedRole="ADMIN">
121+
<AdminImageReview />
122+
</ProtectedRoute>
123+
}
124+
/>
112125
<Route path="/contact" element={<Contact />} />
113126

114127
{/* New routes: view barcode for a donated item (both variants) */}

0 commit comments

Comments
 (0)