Skip to content

Commit

Permalink
[FEAT/#106] 바텀시트 안 내려가게 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeyubin committed Jul 17, 2024
1 parent b055e21 commit b0ad8ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ fun MyPageLogoutBottomSheet(
cornerRadius = 10.dp,
text = R.string.my_page_logout_button,
onButtonClick = {
scope.launch { sheetState.hide() }
.invokeOnCompletion {
if (!sheetState.isVisible) {
onLogoutClick()
}
}
onLogoutClick()
},
modifier = modifier.padding(
start = 24.dp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,7 @@ fun MyPageQuitBottomSheet(
cornerRadius = 10.dp,
text = R.string.my_page_back_button,
onButtonClick = {
scope.launch { sheetState.hide() }
.invokeOnCompletion {
if (!sheetState.isVisible) {
onDismiss()
}
}
onDismiss()
},
modifier = modifier.padding(
start = 24.dp,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ fun MyPageRoute(
MyPageLogoutBottomSheet(
onDismiss = { showLogoutBottomSheet = false },
onLogoutClick = {
showLogoutBottomSheet = false
viewModel.logoutKakao()
},
)
Expand All @@ -60,7 +59,6 @@ fun MyPageRoute(
MyPageQuitBottomSheet(
onDismiss = { showQuitBottomSheet = false },
onQuitClick = {
showQuitBottomSheet = false
viewModel.patchQuit()
}
)
Expand Down

0 comments on commit b0ad8ef

Please sign in to comment.