+
{quizQuestions ? (
+
{quiz?.title}
- {!isNaN(Number(currentQuestion?.question.id)) && (
-
- Question {Number(currentQuestion?.question.id)}/
- {quizQuestions?.length}
-
- )}
+
+
+ Afficher les questions
}
+ control={
+
) =>
+ setIsQuestionShown(e.target.checked)
+ }
+ />
+ }
+ />
+
+
+ {!isNaN(Number(currentQuestion?.question.id))
+ && isQuestionShown && (
+
+ Question {Number(currentQuestion?.question.id)}/
+ {quizQuestions?.length}
+
+ )
+ }
{quizMode === 'teacher' && (
@@ -421,11 +451,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..bd4b6fb 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-start;
+ margin-right: 1rem;
+}
/* .create-room-container {
display: flex;