Handle topic clicks from all destinations

Closes #865
pull/868/head
Simon Marquis 1 year ago committed by GitHub
parent cd2fbb02b6
commit 64f81751b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save