mirror of
https://github.com/bitwarden/android.git
synced 2026-05-21 11:56:35 -05:00
Set null composable when content is empty (#284)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user