Change startDestination from KClass to default instance

Change-Id: Ia5bb0abd366653aff5cf5a772ac11a837e96b9b1
dt/nav-safe-args-android-dependency
Don Turner 7 months ago
parent 8cc0fc00e6
commit 116e961f1b

@ -44,7 +44,7 @@ fun NiaNavHost(
val navController = appState.navController val navController = appState.navController
NavHost( NavHost(
navController = navController, navController = navController,
startDestination = ForYouDestination::class, startDestination = ForYouDestination(),
modifier = modifier, modifier = modifier,
) { ) {
forYouScreen(onTopicClick = navController::navigateToInterests) forYouScreen(onTopicClick = navController::navigateToInterests)

Loading…
Cancel
Save