mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
Update Basic dialog to allow for empty message or an empty title (#282)
This commit is contained in:
parent
5864f5376d
commit
583e3cca86
1 changed files with 7 additions and 7 deletions
|
@ -36,16 +36,16 @@ fun BitwardenBasicDialog(
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
title = {
|
title = {
|
||||||
|
visibilityState.title?.let {
|
||||||
Text(
|
Text(
|
||||||
text = visibilityState.title(),
|
text = it(),
|
||||||
color = MaterialTheme.colorScheme.onSurface,
|
|
||||||
style = MaterialTheme.typography.headlineSmall,
|
style = MaterialTheme.typography.headlineSmall,
|
||||||
)
|
)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
text = {
|
text = {
|
||||||
Text(
|
Text(
|
||||||
text = visibilityState.message(),
|
text = visibilityState.message(),
|
||||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
|
||||||
style = MaterialTheme.typography.bodyMedium,
|
style = MaterialTheme.typography.bodyMedium,
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
|
@ -84,7 +84,7 @@ sealed class BasicDialogState : Parcelable {
|
||||||
*/
|
*/
|
||||||
@Parcelize
|
@Parcelize
|
||||||
data class Shown(
|
data class Shown(
|
||||||
val title: Text,
|
val title: Text?,
|
||||||
val message: Text,
|
val message: Text,
|
||||||
) : BasicDialogState()
|
) : BasicDialogState()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue