|
|
|
@ -129,20 +129,20 @@ fun AppNavigator() {
|
|
|
|
|
composable(Destination.SubmitQuote.route) { SubmitQuotePage() }
|
|
|
|
|
|
|
|
|
|
composable(Destination.QuizMenu.route) {
|
|
|
|
|
val userIndex = it.arguments?.getString("userIndex")?.toInt() ?: -1
|
|
|
|
|
//val userIndex = it.arguments?.getString("userIndex")?.toInt() ?: -1
|
|
|
|
|
QuizMenu(
|
|
|
|
|
index = userIndex,
|
|
|
|
|
navAccueil = { userIndex ->
|
|
|
|
|
navController.navigate(Destination.Accueil.createRoute(userIndex)) // Passe l'index à Profil
|
|
|
|
|
},
|
|
|
|
|
navFavorite = { userIndex ->
|
|
|
|
|
navController.navigate(Destination.Favorite.createRoute(userIndex)) // Passe l'index à Profil
|
|
|
|
|
},
|
|
|
|
|
//index = userIndex,
|
|
|
|
|
// navAccueil = { userIndex ->
|
|
|
|
|
// navController.navigate(Destination.Accueil.createRoute(userIndex)) // Passe l'index à Profil
|
|
|
|
|
// },
|
|
|
|
|
// navFavorite = { userIndex ->
|
|
|
|
|
// navController.navigate(Destination.Favorite.createRoute(userIndex)) // Passe l'index à Profil
|
|
|
|
|
// },
|
|
|
|
|
// navProfil = { userIndex ->
|
|
|
|
|
// navController.navigate(Destination.Profil.createRoute(userIndex)) // Passe l'index à Profil
|
|
|
|
|
// },
|
|
|
|
|
navControllerQuiz = { id ->
|
|
|
|
|
navController.navigate(Destination.Quiz.createId(id))
|
|
|
|
|
},
|
|
|
|
|
navProfil = { userIndex ->
|
|
|
|
|
navController.navigate(Destination.Profil.createRoute(userIndex)) // Passe l'index à Profil
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|