Updated on 2026-08-14
This commit is contained in:
parent
44143fe652
commit
0184cf23e9
4 changed files with 26 additions and 35 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue