From 36ad94d31a017befa93b90c92d5c1496163f5c4a Mon Sep 17 00:00:00 2001 From: "h.hartz" <henri.hartz@etu.unistra.fr> Date: Thu, 16 Jan 2025 15:12:32 +0100 Subject: [PATCH 1/4] feat: hide multiplayer --- routes/TabNavigation.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/routes/TabNavigation.tsx b/routes/TabNavigation.tsx index 332a6cb..bc58c3e 100644 --- a/routes/TabNavigation.tsx +++ b/routes/TabNavigation.tsx @@ -37,9 +37,9 @@ export default function TabNavigator() { } else if (route.name === "Community") { iconName = "people"; } - else if (route.name === "Multiplayer") { - iconName = "diversity-2"; - } + // else if (route.name === "Multiplayer") { + // iconName = "diversity-2"; + // } return <Icon name={iconName ?? ''} size={64} color={color} />; }, })} @@ -52,10 +52,10 @@ export default function TabNavigator() { name="Community" component={Community} /> - <Tab.Screen + {/* <Tab.Screen name="Multiplayer" component={Multiplayer} - /> + /> */} <Tab.Screen name="Profil" component={Profil} -- GitLab From 5d4f6547124ec88a6d638eccb54598e2a97846de Mon Sep 17 00:00:00 2001 From: "h.hartz" <henri.hartz@etu.unistra.fr> Date: Thu, 16 Jan 2025 15:14:12 +0100 Subject: [PATCH 2/4] feat: hide my quizzes --- screens/Home/HomeChild.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/screens/Home/HomeChild.tsx b/screens/Home/HomeChild.tsx index 718249e..f17f6fe 100644 --- a/screens/Home/HomeChild.tsx +++ b/screens/Home/HomeChild.tsx @@ -39,8 +39,8 @@ export default function HomeChild({navigation}: Props) { }); } const handleButtonMyQuizzesPressed = () => { - // navigation.navigate("MyQuizzes"); - navigation.navigate("PlayingQuiz", {runId: "1", quizId: "1"}); + navigation.navigate("MyQuizzes"); + // navigation.navigate("PlayingQuiz", {runId: "1", quizId: "1"}); } const handleButtonGeneratePressed = () => { @@ -55,7 +55,7 @@ export default function HomeChild({navigation}: Props) { <View style={styles.buttonContainer}> <MenuButton text={"QUICK GAME"} handleButtonPressed={handleButtonQuickGamePressed}/> <MenuButton text={"PLAY"} handleButtonPressed={handleButtonGeneratePressed}/> - <MenuButton text={"MY QUIZZES"} handleButtonPressed={handleButtonMyQuizzesPressed}/> + {/* <MenuButton text={"MY QUIZZES"} handleButtonPressed={handleButtonMyQuizzesPressed}/> */} </View> </View> ); -- GitLab From c8fbf4c10a199f52658d040ccbdaeb6cccf1b8b6 Mon Sep 17 00:00:00 2001 From: "h.hartz" <henri.hartz@etu.unistra.fr> Date: Thu, 16 Jan 2025 15:17:26 +0100 Subject: [PATCH 3/4] feat: add score to param playingquizbody --- screens/PlayingQuiz/PlayingQuiz.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screens/PlayingQuiz/PlayingQuiz.tsx b/screens/PlayingQuiz/PlayingQuiz.tsx index 50867a5..3f9134b 100644 --- a/screens/PlayingQuiz/PlayingQuiz.tsx +++ b/screens/PlayingQuiz/PlayingQuiz.tsx @@ -58,7 +58,7 @@ export default function PlayingQuiz({route, navigation}:Props) { return ( <TemplateDuo childrenHeader={<PlayingQuizHeader quizInformations={quizInformations} runId={runId} actualQuestion={actualQuestion} score={score} navigation={navigation}></PlayingQuizHeader>} - childrenBody={<PlayingQuizBody quizInformations={quizInformations} runId={runId} actualQuestion={actualQuestion} fetchActualQuestion={fetchActualQuestion} setScore={setScore} navigation={navigation}></PlayingQuizBody>} + childrenBody={<PlayingQuizBody score={score} quizInformations={quizInformations} runId={runId} actualQuestion={actualQuestion} fetchActualQuestion={fetchActualQuestion} setScore={setScore} navigation={navigation}></PlayingQuizBody>} /> ); } \ No newline at end of file -- GitLab From c55cf7f5a82de1270dd2e98a6a1f11ea47a69b07 Mon Sep 17 00:00:00 2001 From: "h.hartz" <henri.hartz@etu.unistra.fr> Date: Thu, 16 Jan 2025 15:19:11 +0100 Subject: [PATCH 4/4] feat: show my quizzes --- screens/Home/HomeChild.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screens/Home/HomeChild.tsx b/screens/Home/HomeChild.tsx index f17f6fe..fa17672 100644 --- a/screens/Home/HomeChild.tsx +++ b/screens/Home/HomeChild.tsx @@ -55,7 +55,7 @@ export default function HomeChild({navigation}: Props) { <View style={styles.buttonContainer}> <MenuButton text={"QUICK GAME"} handleButtonPressed={handleButtonQuickGamePressed}/> <MenuButton text={"PLAY"} handleButtonPressed={handleButtonGeneratePressed}/> - {/* <MenuButton text={"MY QUIZZES"} handleButtonPressed={handleButtonMyQuizzesPressed}/> */} + <MenuButton text={"MY QUIZZES"} handleButtonPressed={handleButtonMyQuizzesPressed}/> </View> </View> ); -- GitLab