Skip to content

Commit

Permalink
[FEATURE]#223 : 회원탈퇴 API 호출 전, 모달 닫도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongjaino committed Jan 26, 2025
1 parent 3c4f7c2 commit f2fda36
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ fun AccountSettingScreen(
val intent = activityNavigator.navigateToAuth(context)
context.startActivity(intent)
}
is EntireSideEffect.CloseSignOutDialog -> {
showDialog = false
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ fun RevokeConfirmScreen(
intent.putExtra(EXTRA_TOAST_MESSAGE, context.getString(R.string.revoke_done))
context.startActivity(intent)
}
else -> { }
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ package com.bff.wespot.entire.state

sealed class EntireSideEffect {
data object NavigateToAuth : EntireSideEffect()
data object CloseSignOutDialog : EntireSideEffect()
}
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ class EntireViewModel @Inject constructor(
}

private fun handleSignOut() = intent {
postSideEffect(EntireSideEffect.CloseSignOutDialog)
reduce { state.copy(isLoading = true) }

viewModelScope.launch(coroutineDispatcher) {
Expand Down

0 comments on commit f2fda36

Please sign in to comment.