{quiz?.title}
- {!isNaN(Number(currentQuestion?.question.id)) && (
-
- Question {Number(currentQuestion?.question.id)}/
- {quizQuestions?.length}
-
+ {(quizMode === 'student' && isQuestionShown) && (
+
+
+
)}
+ {!isNaN(Number(currentQuestion?.question.id))
+ && isQuestionShown && (
+
+ Question {Number(currentQuestion?.question.id)}/
+ {quizQuestions?.length}
+
+ )
+ }
{quizMode === 'teacher' && (
@@ -483,11 +506,11 @@ const ManageRoom: React.FC = () => {
- {currentQuestion && (
+ {currentQuestion && isQuestionShown && (
)}
diff --git a/client/src/pages/Teacher/ManageRoom/manageRoom.css b/client/src/pages/Teacher/ManageRoom/manageRoom.css
index ad870a9..9246099 100644
--- a/client/src/pages/Teacher/ManageRoom/manageRoom.css
+++ b/client/src/pages/Teacher/ManageRoom/manageRoom.css
@@ -37,10 +37,11 @@
/* align-items: center; */
}
-
-
-
-
+.close-button-wrapper{
+ display: flex;
+ justify-content: flex-end;
+ margin-right: 1rem;
+}
/* .create-room-container {
display: flex;