From 31ce2c5e53db8bb5764d3ee46b01db83587582b3 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Thu, 15 Feb 2024 18:51:12 +0100 Subject: [PATCH] adapting modal --- src/components/game/GameAnswerExplanation.jsx | 21 +++++++++---------- src/components/game/GameQuestion.jsx | 16 +++++++------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/components/game/GameAnswerExplanation.jsx b/src/components/game/GameAnswerExplanation.jsx index c2d7b6b..a5a37db 100644 --- a/src/components/game/GameAnswerExplanation.jsx +++ b/src/components/game/GameAnswerExplanation.jsx @@ -14,8 +14,8 @@ export default function GameAnwerExplanation({ questionId }) { const objectPictureUrl = contextGameDatas.gameObjects[questionId].attrs.objectPictureUrl; return ( -
-
+
+
{answer.userAnsweredCorrectly === true && ( <>
@@ -43,18 +43,17 @@ export default function GameAnwerExplanation({ questionId }) { )}

C'est un risque

{answerExplanation}

+
-
+
- -
); } diff --git a/src/components/game/GameQuestion.jsx b/src/components/game/GameQuestion.jsx index a3f5b53..8ac6013 100644 --- a/src/components/game/GameQuestion.jsx +++ b/src/components/game/GameQuestion.jsx @@ -12,9 +12,8 @@ export default function GameQuestion({ questionId, correctAnswer }, ...props) { } return ( -
- {correctAnswer} -
+
+

Trouvé !

securisé ou risqué ?

@@ -22,20 +21,23 @@ export default function GameQuestion({ questionId, correctAnswer }, ...props) { Est-ce que la situation comporte un risque majeur ou identifiez vous un bon comportement ?

-
+
+

{correctAnswer}

+
+
+
-
); }