Skip to content

Commit

Permalink
📝 style(LoginTextField) character Limit set to 35 RoutinelyOrganizati…
Browse files Browse the repository at this point in the history
  • Loading branch information
edijaniosouza committed May 8, 2024
1 parent 94d1d12 commit 9c87991
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ fun LoginTextField(
) {
OutlinedTextField(
value = value,
onValueChange = { onValueChange(it) },
onValueChange = { newValue ->
if (newValue.length <= 35) onValueChange(newValue)
},
label = {
Text(
text = labelRes,
Expand All @@ -36,7 +38,7 @@ fun LoginTextField(
modifier = Modifier.fillMaxWidth(),
isError = error is EmailInputValid.Error || apiError,
supportingText = {
if(error is EmailInputValid.Error) {
if (error is EmailInputValid.Error) {
Text(
modifier = Modifier.fillMaxWidth(),
text = stringResource(id = error.messageId),
Expand Down

0 comments on commit 9c87991

Please sign in to comment.