From 79b4530cf8ade78db46b30b4311fb4bb34a9cbe0 Mon Sep 17 00:00:00 2001 From: Daniel Xue Date: Wed, 27 Mar 2024 21:10:37 -0400 Subject: [PATCH] implementation of finish question as non-answerer --- .../FinishConfirmModal.tsx | 34 ++++++++++++++ .../InstructorQueuePage/QuestionCard.tsx | 45 ++++++++++++------- 2 files changed, 64 insertions(+), 15 deletions(-) create mode 100644 frontend/components/Course/InstructorQueuePage/FinishConfirmModal.tsx diff --git a/frontend/components/Course/InstructorQueuePage/FinishConfirmModal.tsx b/frontend/components/Course/InstructorQueuePage/FinishConfirmModal.tsx new file mode 100644 index 00000000..dcfdd825 --- /dev/null +++ b/frontend/components/Course/InstructorQueuePage/FinishConfirmModal.tsx @@ -0,0 +1,34 @@ +import { Button, Modal } from "semantic-ui-react"; + +interface FinishConfirmModalProps { + finishFunc: () => void; + closeFunc: () => void; + open: boolean; +} + +const FinishConfirmModal = (props: FinishConfirmModalProps) => { + const { finishFunc, closeFunc, open } = props; + + return ( + + Finish Confirmation + + + You are about to finish a question that you did not start. + Is this intended? + + + +