Skip to content

Commit

Permalink
[Feat] 다이얼로그 property 추가 (백클릭, dimsiss 제어)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaesungLeee committed Oct 3, 2024
1 parent 6cedea8 commit 8180298
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,24 @@ import androidx.compose.ui.draw.clip
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Dialog
import androidx.compose.ui.window.DialogProperties
import team.ppac.designsystem.FarmemeTheme
import team.ppac.designsystem.foundation.FarmemeRadius
import team.ppac.designsystem.util.extension.noRippleClickable

@Composable
fun NetworkErrorDialog(
modifier: Modifier = Modifier,
isCancellable: Boolean = false,
onConfirmClick: () -> Unit,
onDismiss: () -> Unit,
onDismiss: () -> Unit = {},
) {
Dialog(
onDismissRequest = onDismiss,
properties = DialogProperties(
dismissOnBackPress = isCancellable,
dismissOnClickOutside = isCancellable
)
) {
Column(
modifier = modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ class SplashActivity : ComponentActivity() {
onConfirmClick = {
viewModel.intent(SplashIntent.ClickDialogConfirm)
},
onDismiss = {
viewModel.intent(SplashIntent.ClickDialogConfirm)
}
)
}
}
Expand Down

0 comments on commit 8180298

Please sign in to comment.