- {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;
From 206895ebb54d181b78293cf501388d3e6a88df58 Mon Sep 17 00:00:00 2001
From: JubaAzul <118773284+JubaAzul@users.noreply.github.com>
Date: Wed, 19 Mar 2025 14:18:31 -0400
Subject: [PATCH 2/2] =?UTF-8?q?[BUG]=20Dans=20un=20quiz=20au=20rythme=20de?=
=?UTF-8?q?=20l'=C3=A9tudiant,=20l'enseignant=20ne=20peut=20plus=20masquer?=
=?UTF-8?q?=20les=20questions=20Fixes=20#295?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pages/Teacher/ManageRoom/ManageRoom.tsx | 25 +++++++++++--------
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/client/src/pages/Teacher/ManageRoom/ManageRoom.tsx b/client/src/pages/Teacher/ManageRoom/ManageRoom.tsx
index 67af4a3..7034bdc 100644
--- a/client/src/pages/Teacher/ManageRoom/ManageRoom.tsx
+++ b/client/src/pages/Teacher/ManageRoom/ManageRoom.tsx
@@ -23,7 +23,7 @@ import DisconnectButton from 'src/components/DisconnectButton/DisconnectButton';
import QuestionDisplay from 'src/components/QuestionsDisplay/QuestionDisplay';
import ApiService from '../../../services/ApiService';
import { QuestionType } from 'src/Types/QuestionType';
-import { Button } from '@mui/material';
+import { Button, FormControlLabel, Switch } from '@mui/material';
import { AnswerType } from 'src/pages/Student/JoinRoom/JoinRoom';
const ManageRoom: React.FC = () => {
@@ -471,19 +471,24 @@ const ManageRoom: React.FC = () => {
{quizQuestions ? (
+
{quiz?.title}
- {(quizMode === 'student' && isQuestionShown) && (
+
-
+ Afficher les questions
}
+ control={
+
) =>
+ setIsQuestionShown(e.target.checked)
+ }
+ />
+ }
+ />
- )}
+
{!isNaN(Number(currentQuestion?.question.id))
&& isQuestionShown && (