From 08cc8ed0fc3d9a277c3984e4f678069da14d0536 Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 9 Oct 2024 18:18:58 -0300 Subject: [PATCH] Stashing my commits --- .../mifospay/core/designsystem/component/TextField.kt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/designsystem/src/main/kotlin/org/mifospay/core/designsystem/component/TextField.kt b/core/designsystem/src/main/kotlin/org/mifospay/core/designsystem/component/TextField.kt index 1872bb6cc..ecb46bcc3 100644 --- a/core/designsystem/src/main/kotlin/org/mifospay/core/designsystem/component/TextField.kt +++ b/core/designsystem/src/main/kotlin/org/mifospay/core/designsystem/component/TextField.kt @@ -98,7 +98,6 @@ fun MfOutlinedTextField( ) } - @Composable fun MfPasswordTextField( password: String, @@ -146,14 +145,14 @@ fun MfPasswordTextField( modifier = Modifier .fillMaxWidth() .background(Color.Transparent), - contentAlignment = Alignment.CenterStart + contentAlignment = Alignment.CenterStart, ) { innerTextField() IconButton( onClick = onTogglePasswordVisibility, - modifier = Modifier.align(Alignment.CenterEnd)) - { + modifier = Modifier.align(Alignment.CenterEnd), + ) { Icon( if (isPasswordVisible) Icons.Filled.Visibility else Icons.Filled.VisibilityOff, contentDescription = "Toggle password visibility", @@ -173,7 +172,7 @@ fun MfPasswordTextField( text = errorMessage, color = MaterialTheme.colorScheme.error, style = MaterialTheme.typography.bodySmall, - modifier = Modifier.padding(top = 4.dp) + modifier = Modifier.padding(top = 4.dp), ) } }