Skip to content

Commit cd64331

Browse files
committed
chore: round 2 questions opened
1 parent e8ed3f4 commit cd64331

File tree

3 files changed

+453
-7
lines changed

3 files changed

+453
-7
lines changed

frontend/src/App.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Schedule from "./pages/scheduling";
88
import Create from "./pages/createSlot";
99
import Domain from "./pages/domain"
1010
import Sorry from "./pages/sorry";
11+
import Round2 from "./pages/round2";
1112

1213
export default function App() {
1314
return (
@@ -19,7 +20,7 @@ export default function App() {
1920
<Route path="/schedule" element={<Schedule />} />
2021
<Route path="/create" element={<Create/>} />
2122
<Route path="/domain" element={<Domain/>} />
22-
<Route path="/manage" element={<Sorry />} />
23+
<Route path="/manage" element={<Round2 />} />
2324
</Routes>
2425
);
2526
}

frontend/src/pages/manage.jsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ const isAddDisabled =
195195
Cancel
196196
</button>
197197

198-
<button
198+
{/* <button
199199
onClick={() => {
200200
handleDeleteQuestion(
201201
pendingDelete.id,
@@ -207,7 +207,7 @@ const isAddDisabled =
207207
className="px-4 py-2 rounded-lg bg-red-600 hover:bg-red-700 text-sm font-semibold"
208208
>
209209
Delete
210-
</button>
210+
</button>*/}
211211
</div>
212212
</div>
213213
</div>
@@ -366,15 +366,15 @@ const isAddDisabled =
366366
>
367367

368368

369-
<button
369+
{/*<button
370370
onClick={() => {
371371
setPendingDelete({ id: q.id, type: q.type });
372372
setShowDeleteModal(true);
373373
}}
374374
className="absolute bottom-2 right-2 bg-red-600 hover:bg-red-700 px-2 py-1 rounded-md text-[10px] font-medium transition-colors"
375375
>
376376
Delete
377-
</button>
377+
</button>*/}
378378
<p className="text-white font-semibold">{q.text}</p>
379379

380380
<div className="flex items-center gap-2 mt-3 relative">
@@ -414,15 +414,16 @@ const isAddDisabled =
414414
Correct: {q.options[q.correctIndex]}
415415

416416
</p>
417-
<button
417+
418+
{/*<button
418419
onClick={() => {
419420
setPendingDelete({ id: q.id, type: q.type });
420421
setShowDeleteModal(true);
421422
}}
422423
className="absolute bottom-2 right-2 bg-red-600 hover:bg-red-700 px-2 py-1 rounded-md text-[10px] font-medium transition-colors"
423424
>
424425
Delete
425-
</button>
426+
</button>*/}
426427

427428

428429
</>

0 commit comments

Comments
 (0)