diff --git a/routes/TabNavigation.tsx b/routes/TabNavigation.tsx index 332a6cbf59824c5925a663220c154a0673232ebf..bc58c3e2f9538893ea40e2bf156b87ddf1545d1f 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} diff --git a/screens/Home/HomeChild.tsx b/screens/Home/HomeChild.tsx index 718249ec2e100614a2f32161a170812836a1d042..fa17672944597e3f9eccbfd86f29b60196aeeaa1 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 = () => { diff --git a/screens/PlayingQuiz/PlayingQuiz.tsx b/screens/PlayingQuiz/PlayingQuiz.tsx index 50867a592fac7a6d83d3f609bd94ed5f1bdfa5da..3f9134b0615578fad97fe7c688691c228204bc3b 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