Fix spotless

pull/1681/head
Don Turner 2 weeks ago
parent ef132e07e3
commit 89795c98b5

@ -50,12 +50,12 @@ fun NiaNavHost(
modifier = modifier, modifier = modifier,
) { ) {
forYouSection( forYouSection(
onTopicClick = navController::navigateToTopic onTopicClick = navController::navigateToTopic,
) { ) {
topicScreen( topicScreen(
showBackButton = true, showBackButton = true,
onBackClick = navController::popBackStack, onBackClick = navController::popBackStack,
onTopicClick = navController::navigateToTopic onTopicClick = navController::navigateToTopic,
) )
} }
bookmarksScreen( bookmarksScreen(

@ -27,6 +27,7 @@ import com.google.samples.apps.nowinandroid.feature.foryou.ForYouScreen
import kotlinx.serialization.Serializable import kotlinx.serialization.Serializable
@Serializable data object ForYouRoute // route to ForYou screen @Serializable data object ForYouRoute // route to ForYou screen
@Serializable data object ForYouBaseRoute // route to base navigation graph @Serializable data object ForYouBaseRoute // route to base navigation graph
fun NavController.navigateToForYou(navOptions: NavOptions) = navigate(route = ForYouRoute, navOptions) fun NavController.navigateToForYou(navOptions: NavOptions) = navigate(route = ForYouRoute, navOptions)
@ -40,7 +41,7 @@ fun NavController.navigateToForYou(navOptions: NavOptions) = navigate(route = Fo
*/ */
fun NavGraphBuilder.forYouSection( fun NavGraphBuilder.forYouSection(
onTopicClick: (String) -> Unit, onTopicClick: (String) -> Unit,
topicDestination: NavGraphBuilder.() -> Unit topicDestination: NavGraphBuilder.() -> Unit,
) { ) {
navigation<ForYouBaseRoute>(startDestination = ForYouRoute) { navigation<ForYouBaseRoute>(startDestination = ForYouRoute) {
composable<ForYouRoute>( composable<ForYouRoute>(

Loading…
Cancel
Save