From b0ad8efdf04442fb6e25b37919db82fb27ce5fd3 Mon Sep 17 00:00:00 2001 From: LEE YOU BIN Date: Thu, 18 Jul 2024 03:26:55 +0900 Subject: [PATCH] =?UTF-8?q?[FEAT/#106]=20=EB=B0=94=ED=85=80=EC=8B=9C?= =?UTF-8?q?=ED=8A=B8=20=EC=95=88=20=EB=82=B4=EB=A0=A4=EA=B0=80=EA=B2=8C=20?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/bottomsheet/MyPageLogoutBottomSheet.kt | 7 +------ .../component/bottomsheet/MyPageQuitBottomSheet.kt | 7 +------ .../main/java/com/terning/feature/mypage/MyPageRoute.kt | 2 -- 3 files changed, 2 insertions(+), 14 deletions(-) diff --git a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/MyPageLogoutBottomSheet.kt b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/MyPageLogoutBottomSheet.kt index dbe1469a9..0cccd2206 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/MyPageLogoutBottomSheet.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/MyPageLogoutBottomSheet.kt @@ -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, diff --git a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/MyPageQuitBottomSheet.kt b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/MyPageQuitBottomSheet.kt index c77bc397d..fe722d1aa 100644 --- a/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/MyPageQuitBottomSheet.kt +++ b/core/src/main/java/com/terning/core/designsystem/component/bottomsheet/MyPageQuitBottomSheet.kt @@ -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, diff --git a/feature/src/main/java/com/terning/feature/mypage/MyPageRoute.kt b/feature/src/main/java/com/terning/feature/mypage/MyPageRoute.kt index 6d62a680a..41173af9a 100644 --- a/feature/src/main/java/com/terning/feature/mypage/MyPageRoute.kt +++ b/feature/src/main/java/com/terning/feature/mypage/MyPageRoute.kt @@ -50,7 +50,6 @@ fun MyPageRoute( MyPageLogoutBottomSheet( onDismiss = { showLogoutBottomSheet = false }, onLogoutClick = { - showLogoutBottomSheet = false viewModel.logoutKakao() }, ) @@ -60,7 +59,6 @@ fun MyPageRoute( MyPageQuitBottomSheet( onDismiss = { showQuitBottomSheet = false }, onQuitClick = { - showQuitBottomSheet = false viewModel.patchQuit() } )