Updated on 2026-08-14

This commit is contained in:
Tangem 2025-09-10 11:12:01 +03:00
parent 44143fe652
commit 0184cf23e9
4 changed files with 26 additions and 35 deletions

View file

@ -121,11 +121,7 @@ private fun LazyListScope.addressItem(
) {
item(key = ADDRESS_FIELD_KEY) {
FooterContainer(
footer = if (isRedesignEnabled) {
buildHighlightedFooterText(networkName)
} else {
resourceReference(R.string.send_recipient_address_footer, wrappedList(networkName))
},
footer = resourceReference(R.string.send_recipient_address_footer, wrappedList(networkName)),
) {
InputRowRecipient(
value = address.value,
@ -150,33 +146,6 @@ private fun LazyListScope.addressItem(
}
}
@Composable
private fun buildHighlightedFooterText(networkName: String): TextReference {
return annotatedReference(
buildAnnotatedString {
val styledText = stringResourceSafe(
R.string.send_recipient_address_footer_highlighted_part,
networkName,
)
val styledColor = TangemTheme.colors.text.secondary
appendWithStyledPlaceholder(
template = stringResourceSafe(
R.string.send_recipient_address_footer_v2,
networkName,
),
placeholder = networkName,
) {
withStyle(SpanStyle(fontWeight = FontWeight.Medium)) {
appendColored(
text = styledText,
color = styledColor,
)
}
}
},
)
}
private fun LazyListScope.memoField(
memoField: DestinationTextFieldUM.RecipientMemo?,
onMemoChange: (String, Boolean) -> Unit,