From 4415d503427d8220b9508ba409f7e61fc80111b2 Mon Sep 17 00:00:00 2001 From: William Correa Date: Tue, 9 Apr 2024 01:13:44 -0300 Subject: [PATCH] feature: improve UI --- src/view/components/game/GamePlaySession.tsx | 3 +++ .../GamePlaySessionQuestionUnanswered.tsx | 3 ++- .../general/{Hydrated.tsx => Async.tsx} | 18 +++++++++--------- src/view/pages/game/GamePlayPage.tsx | 14 +++++++------- src/view/pages/game/GameWelcomePage.tsx | 14 +++++++------- 5 files changed, 28 insertions(+), 24 deletions(-) rename src/view/components/general/{Hydrated.tsx => Async.tsx} (73%) diff --git a/src/view/components/game/GamePlaySession.tsx b/src/view/components/game/GamePlaySession.tsx index e50c229..4d74702 100644 --- a/src/view/components/game/GamePlaySession.tsx +++ b/src/view/components/game/GamePlaySession.tsx @@ -96,6 +96,9 @@ export function GamePlaySession ({ game, onStart, onFinish }: GamePlaySessionPro answerQuestion={answerQuestion} nextQuestion={nextQuestion} /> +
+ {game.questions.length - questions.length} / {game.questions.length} +
diff --git a/src/view/components/game/game-play-session/game-play-session-question/GamePlaySessionQuestionUnanswered.tsx b/src/view/components/game/game-play-session/game-play-session-question/GamePlaySessionQuestionUnanswered.tsx index e408b68..c41188e 100644 --- a/src/view/components/game/game-play-session/game-play-session-question/GamePlaySessionQuestionUnanswered.tsx +++ b/src/view/components/game/game-play-session/game-play-session-question/GamePlaySessionQuestionUnanswered.tsx @@ -30,7 +30,7 @@ export function GamePlaySessionQuestionUnanswered (props: GameQuestionOptionsPro return (
-
+

+