From e29f692557571b9bf6db4aa6effbb6500138bab2 Mon Sep 17 00:00:00 2001 From: jeongjaino Date: Sun, 14 Jan 2024 17:13:30 +0900 Subject: [PATCH] =?UTF-8?q?[FIX]=20#107=20:=20=EB=92=A4=EB=A1=9C=EA=B0=80?= =?UTF-8?q?=EA=B8=B0=20=EB=B0=8F=20=EC=95=84=EC=9B=83=20=EC=82=AC=EC=9D=B4?= =?UTF-8?q?=EB=93=9C=20=ED=81=B4=EB=A6=AD=EC=8B=9C=20=EB=94=94=EC=95=8C?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EA=BA=BC=EC=A7=80=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagementCodeValidationDialog.kt | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/feature/management/src/main/java/com/wap/wapp/feature/management/validation/ManagementCodeValidationDialog.kt b/feature/management/src/main/java/com/wap/wapp/feature/management/validation/ManagementCodeValidationDialog.kt index b9f58cb95..217a88cb1 100644 --- a/feature/management/src/main/java/com/wap/wapp/feature/management/validation/ManagementCodeValidationDialog.kt +++ b/feature/management/src/main/java/com/wap/wapp/feature/management/validation/ManagementCodeValidationDialog.kt @@ -14,7 +14,6 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.style.TextAlign import androidx.compose.ui.unit.dp -import androidx.compose.ui.window.DialogProperties import androidx.hilt.navigation.compose.hiltViewModel import com.wap.designsystem.WappTheme import com.wap.designsystem.component.WappButton @@ -33,6 +32,7 @@ fun ManagementCodeValidationDialog( LaunchedEffect(true) { viewModel.managementCodeUiState.collectLatest { when (it) { + is ManagementCodeUiState.Init -> {} is ManagementCodeUiState.Success -> { onDismissRequest() } @@ -40,8 +40,6 @@ fun ManagementCodeValidationDialog( is ManagementCodeUiState.Failure -> { showToast(it.throwable) } - - is ManagementCodeUiState.Init -> {} } } } @@ -49,10 +47,6 @@ fun ManagementCodeValidationDialog( AlertDialog( onDismissRequest = { onDismissRequest() }, modifier = Modifier.padding(horizontal = 16.dp), - properties = DialogProperties( - dismissOnBackPress = false, - dismissOnClickOutside = false, - ), ) { Column( modifier = Modifier.padding(16.dp), @@ -94,13 +88,3 @@ fun ManagementCodeValidationDialog( } } } - -/* -@Preview -@Composable -fun previewDialog() { - WappTheme { - ManageCodeDialog() - } -} -*/