File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
app/src/main/java/com/poti/android/presentation Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ fun PotiNavHost(
4242 )
4343 profileNavGraph(
4444 paddingValues = paddingValues,
45+ onBackClick = { navigator.navController.popBackStack() },
4546 )
4647 }
4748}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ data class HistorySummaryUiModel(
3030)
3131
3232@Composable
33- fun ProfileRoute (
33+ fun ProfileScreenRoute (
3434 onBackClick : () -> Unit ,
3535 modifier : Modifier = Modifier ,
3636) {
Original file line number Diff line number Diff line change 11package com.poti.android.presentation.user.profile.navigation
22
33import androidx.compose.foundation.layout.PaddingValues
4+ import androidx.compose.foundation.layout.padding
5+ import androidx.compose.ui.Modifier
46import androidx.navigation.NavController
57import androidx.navigation.NavGraphBuilder
68import androidx.navigation.compose.composable
79import com.poti.android.core.navigation.Route
10+ import com.poti.android.presentation.user.profile.ProfileScreenRoute
811import kotlinx.serialization.Serializable
912
1013sealed interface ProfileRoute : Route {
@@ -18,6 +21,12 @@ fun NavController.navigateToProfile() {
1821
1922fun NavGraphBuilder.profileNavGraph (
2023 paddingValues : PaddingValues ,
24+ onBackClick : () -> Unit ,
2125) {
22- composable<ProfileRoute .Profile > { }
26+ composable<ProfileRoute .Profile > {
27+ ProfileScreenRoute (
28+ onBackClick = onBackClick,
29+ modifier = Modifier .padding(paddingValues),
30+ )
31+ }
2332}
You can’t perform that action at this time.
0 commit comments