mirror of
https://github.com/bitwarden/android.git
synced 2025-03-15 18:58:59 +03:00
Set null composable when content is empty (#284)
This commit is contained in:
parent
583e3cca86
commit
ba251d0809
3 changed files with 6 additions and 6 deletions
|
@ -35,8 +35,8 @@ fun BitwardenBasicDialog(
|
|||
onClick = onDismissRequest,
|
||||
)
|
||||
},
|
||||
title = {
|
||||
visibilityState.title?.let {
|
||||
title = visibilityState.title?.let {
|
||||
{
|
||||
Text(
|
||||
text = it(),
|
||||
style = MaterialTheme.typography.headlineSmall,
|
||||
|
|
|
@ -73,8 +73,8 @@ fun BitwardenPasswordField(
|
|||
singleLine = true,
|
||||
readOnly = readOnly,
|
||||
keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Password),
|
||||
supportingText = {
|
||||
hint?.let {
|
||||
supportingText = hint?.let {
|
||||
{
|
||||
Text(
|
||||
text = hint,
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
|
|
|
@ -43,8 +43,8 @@ fun BitwardenTextField(
|
|||
placeholder = placeholder?.let {
|
||||
{ Text(text = it) }
|
||||
},
|
||||
supportingText = {
|
||||
hint?.let {
|
||||
supportingText = hint?.let {
|
||||
{
|
||||
Text(
|
||||
text = hint,
|
||||
style = MaterialTheme.typography.bodySmall,
|
||||
|
|
Loading…
Add table
Reference in a new issue