From 860f4c3689b9b24cf2d989073adbdbd3aaf15d3e Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 26 Mar 2025 14:39:23 +0000 Subject: [PATCH] Improve UI for questions --- .../GenerateCourse/TestMyKnowledgeAction.tsx | 65 ++++++++++--------- 1 file changed, 34 insertions(+), 31 deletions(-) diff --git a/src/components/GenerateCourse/TestMyKnowledgeAction.tsx b/src/components/GenerateCourse/TestMyKnowledgeAction.tsx index ef676b02e..e38484bfc 100644 --- a/src/components/GenerateCourse/TestMyKnowledgeAction.tsx +++ b/src/components/GenerateCourse/TestMyKnowledgeAction.tsx @@ -120,7 +120,7 @@ export function TestMyKnowledgeAction(props: TestMyKnowledgeActionProps) {
)} {error && ( -
- - {error} +
+ + {error}
)} @@ -325,24 +325,27 @@ export function QuizItem(props: QuizItemProps) { return (
-
+
Question {counter} of {totalQuestions} -
+
{submitted && ( -
-

+
+

{title} {canMultiSelect ? '(Select Multiple)' : ''}

-
+
{options.map((option, index) => { let status: QuizOptionStatus = 'default'; if (submitted) { @@ -384,16 +387,16 @@ export function QuizItem(props: QuizItemProps) { })}
-
-
+
+
{submitted ? ( - + You got {correctAnswerCount} out of {totalQuestions} correct. ) : ( @@ -403,18 +406,18 @@ export function QuizItem(props: QuizItemProps) {
@@ -445,16 +448,16 @@ export function QuizOption(props: QuizOptionProps) {