Skip to content

Commit

Permalink
Make small UI changes for Send address input
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelekol committed Feb 26, 2025
1 parent a29c8a5 commit e7147ba
Showing 1 changed file with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,6 @@ fun AddressCheck(
RoundedCornerShape(12.dp)
)
) {
AddressCheckCell(
inProgress = addressValidationInProgress,
validationError = addressValidationError
)

checkResults.forEach { (addressCheckType, checkData) ->
CheckCell(
title = stringResource(addressCheckType.title),
Expand Down Expand Up @@ -315,34 +310,6 @@ private fun CheckCell(
}
}

@Composable
private fun AddressCheckCell(
inProgress: Boolean,
validationError: Throwable?
) {
Row(
modifier = Modifier
.padding(horizontal = 16.dp)
.height(40.dp),
verticalAlignment = Alignment.CenterVertically
) {
subhead2_grey(
text = stringResource(R.string.Send_Address_AddressCheck),
modifier = Modifier.weight(1f)
)
if (inProgress) {
CircularProgressIndicator(
modifier = Modifier.size(20.dp),
color = ComposeAppTheme.colors.grey,
strokeWidth = 2.dp
)
} else when (validationError) {
null -> subhead2_remus(stringResource(R.string.Send_Address_Error_Correct))
else -> subhead2_lucian(stringResource(R.string.Send_Address_Error_Incorrect))
}
}
}

@Composable
fun CheckValue(
inProgress: Boolean,
Expand All @@ -358,12 +325,6 @@ fun CheckValue(
when (checkResult) {
AddressCheckResult.Clear -> {
subhead2_remus(stringResource(checkResult.title))
Icon(
modifier = Modifier.padding(start = 10.dp),
painter = painterResource(R.drawable.ic_info_20),
contentDescription = null,
tint = ComposeAppTheme.colors.grey50,
)
}

AddressCheckResult.Detected -> {
Expand Down

0 comments on commit e7147ba

Please sign in to comment.