Skip to content

Commit 1f2eb4a

Browse files
committed
bug: delete button for short ans
1 parent 8a2b9bd commit 1f2eb4a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

frontend/src/pages/manage.jsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,15 @@ const isAddDisabled =
366366
>
367367

368368

369-
369+
<button
370+
onClick={() => {
371+
setPendingDelete({ id: q.id, type: q.type });
372+
setShowDeleteModal(true);
373+
}}
374+
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"
375+
>
376+
Delete
377+
</button>
370378
<p className="text-white font-semibold">{q.text}</p>
371379

372380
<div className="flex items-center gap-2 mt-3 relative">

0 commit comments

Comments
 (0)