Add preview for dialog with a third button
This commit is contained in:
parent
f4539c321d
commit
48aeee8dfe
1 changed files with 17 additions and 1 deletions
|
|
@ -485,7 +485,6 @@ internal fun DialogWithOnlyMessageAndOkButtonPreview() {
|
||||||
|
|
||||||
@Preview(group = PreviewGroup.Dialogs, name = "Dialog with destructive button")
|
@Preview(group = PreviewGroup.Dialogs, name = "Dialog with destructive button")
|
||||||
@Composable
|
@Composable
|
||||||
@Suppress("MaxLineLength")
|
|
||||||
internal fun DialogWithDestructiveButtonPreview() {
|
internal fun DialogWithDestructiveButtonPreview() {
|
||||||
ElementThemedPreview(showBackground = false) {
|
ElementThemedPreview(showBackground = false) {
|
||||||
DialogPreview {
|
DialogPreview {
|
||||||
|
|
@ -500,3 +499,20 @@ internal fun DialogWithDestructiveButtonPreview() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Preview(group = PreviewGroup.Dialogs, name = "Dialog with third button")
|
||||||
|
@Composable
|
||||||
|
internal fun DialogWithThirdButtonPreview() {
|
||||||
|
ElementThemedPreview(showBackground = false) {
|
||||||
|
DialogPreview {
|
||||||
|
SimpleAlertDialogContent(
|
||||||
|
title = "Dialog Title",
|
||||||
|
content = "A dialog with a third button",
|
||||||
|
cancelText = "Cancel",
|
||||||
|
submitText = "Delete",
|
||||||
|
thirdButtonText = "Other",
|
||||||
|
onSubmitClicked = {},
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue