Fix spotless

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

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

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

Loading…
Cancel
Save