File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
app/src/main/java/com/threegap/bitnagil
presentation/src/main/java/com/threegap/bitnagil/presentation/setting Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ fun MainNavHost(
137137 ),
138138 )
139139 },
140- navigateToLogin = {
141- navigator.navController.navigate(Route .Login ) {
140+ navigateToIntro = {
141+ navigator.navController.navigate(Route .Intro ) {
142142 popUpTo(0 ) {
143143 inclusive = true
144144 }
Original file line number Diff line number Diff line change @@ -39,13 +39,13 @@ fun SettingScreenContainer(
3939 navigateToBack : () -> Unit ,
4040 navigateToTermsOfService : () -> Unit ,
4141 navigateToPrivacyPolicy : () -> Unit ,
42- navigateToLogin : () -> Unit ,
42+ navigateToIntro : () -> Unit ,
4343) {
4444 val state by viewModel.stateFlow.collectAsState()
4545
4646 viewModel.sideEffectFlow.collectAsEffect { sideEffect ->
4747 when (sideEffect) {
48- SettingSideEffect .NavigateToLogin -> navigateToLogin ()
48+ SettingSideEffect .NavigateToIntro -> navigateToIntro ()
4949 }
5050 }
5151
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class SettingViewModel @Inject constructor(
5151 )
5252 }
5353 SettingIntent .LogoutSuccess -> {
54- sendSideEffect(SettingSideEffect .NavigateToLogin )
54+ sendSideEffect(SettingSideEffect .NavigateToIntro )
5555 return null
5656 }
5757 SettingIntent .LogoutLoading -> {
@@ -61,7 +61,7 @@ class SettingViewModel @Inject constructor(
6161 return state.copy(loading = false )
6262 }
6363 SettingIntent .WithdrawalSuccess -> {
64- sendSideEffect(SettingSideEffect .NavigateToLogin )
64+ sendSideEffect(SettingSideEffect .NavigateToIntro )
6565 return null
6666 }
6767 SettingIntent .WithdrawalLoading -> {
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ package com.threegap.bitnagil.presentation.setting.model.mvi
33import com.threegap.bitnagil.presentation.common.mviviewmodel.MviSideEffect
44
55sealed class SettingSideEffect : MviSideEffect {
6- data object NavigateToLogin : SettingSideEffect ()
6+ data object NavigateToIntro : SettingSideEffect ()
77}
You can’t perform that action at this time.
0 commit comments