Set null composable when content is empty (#284)

This commit is contained in:
David Perez 2023-11-27 20:45:59 -06:00 committed by Álison Fernandes
parent 583e3cca86
commit ba251d0809
3 changed files with 6 additions and 6 deletions

View file

@ -35,8 +35,8 @@ fun BitwardenBasicDialog(
onClick = onDismissRequest,
)
},
title = {
visibilityState.title?.let {
title = visibilityState.title?.let {
{
Text(
text = it(),
style = MaterialTheme.typography.headlineSmall,

View file

@ -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,

View file

@ -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,