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 = {
|
||||
Text(
|
||||
text = visibilityState.title(),
|
||||
color = MaterialTheme.colorScheme.onSurface,
|
||||
style = MaterialTheme.typography.headlineSmall,
|
||||
)
|
||||
visibilityState.title?.let {
|
||||
Text(
|
||||
text = it(),
|
||||
style = MaterialTheme.typography.headlineSmall,
|
||||
)
|
||||
}
|
||||
},
|
||||
text = {
|
||||
Text(
|
||||
text = visibilityState.message(),
|
||||
color = MaterialTheme.colorScheme.onSurfaceVariant,
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
)
|
||||
},
|
||||
|
@ -84,7 +84,7 @@ sealed class BasicDialogState : Parcelable {
|
|||
*/
|
||||
@Parcelize
|
||||
data class Shown(
|
||||
val title: Text,
|
||||
val title: Text?,
|
||||
val message: Text,
|
||||
) : BasicDialogState()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue