|
|
@ -49,8 +49,7 @@ fun NiaNavHost(
|
|
|
|
startDestination = startDestination,
|
|
|
|
startDestination = startDestination,
|
|
|
|
modifier = modifier,
|
|
|
|
modifier = modifier,
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
// TODO: handle topic clicks from each top level destination
|
|
|
|
forYouScreen(onTopicClick = navController::navigateToTopic)
|
|
|
|
forYouScreen(onTopicClick = {})
|
|
|
|
|
|
|
|
bookmarksScreen(
|
|
|
|
bookmarksScreen(
|
|
|
|
onTopicClick = navController::navigateToTopic,
|
|
|
|
onTopicClick = navController::navigateToTopic,
|
|
|
|
onShowSnackbar = onShowSnackbar,
|
|
|
|
onShowSnackbar = onShowSnackbar,
|
|
|
@ -61,13 +60,11 @@ fun NiaNavHost(
|
|
|
|
onTopicClick = navController::navigateToTopic,
|
|
|
|
onTopicClick = navController::navigateToTopic,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
interestsGraph(
|
|
|
|
interestsGraph(
|
|
|
|
onTopicClick = { topicId ->
|
|
|
|
onTopicClick = navController::navigateToTopic,
|
|
|
|
navController.navigateToTopic(topicId)
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
nestedGraphs = {
|
|
|
|
nestedGraphs = {
|
|
|
|
topicScreen(
|
|
|
|
topicScreen(
|
|
|
|
onBackClick = navController::popBackStack,
|
|
|
|
onBackClick = navController::popBackStack,
|
|
|
|
onTopicClick = {},
|
|
|
|
onTopicClick = navController::navigateToTopic,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
)
|
|
|
|
)
|
|
|
|