From bb1ff81252c7b19ff31b0761de21be26a016c115 Mon Sep 17 00:00:00 2001 From: Tangem Date: Thu, 5 Feb 2026 14:28:48 +0500 Subject: [PATCH] Updated on 2026-08-14 --- .../entity/WalletSettingsItemUM.kt | 2 +- .../walletsettings/ui/WalletSettingsScreen.kt | 17 +++++++++++------ .../walletsettings/utils/ItemsBuilder.kt | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/features/wallet-settings/impl/src/main/kotlin/com/tangem/feature/walletsettings/entity/WalletSettingsItemUM.kt b/features/wallet-settings/impl/src/main/kotlin/com/tangem/feature/walletsettings/entity/WalletSettingsItemUM.kt index d9ff609d19..a0598dcab9 100644 --- a/features/wallet-settings/impl/src/main/kotlin/com/tangem/feature/walletsettings/entity/WalletSettingsItemUM.kt +++ b/features/wallet-settings/impl/src/main/kotlin/com/tangem/feature/walletsettings/entity/WalletSettingsItemUM.kt @@ -14,7 +14,7 @@ internal sealed class WalletSettingsItemUM { data class WithItems( override val id: String, - val description: TextReference, + val description: TextReference?, val blocks: ImmutableList, ) : WalletSettingsItemUM() diff --git a/features/wallet-settings/impl/src/main/kotlin/com/tangem/feature/walletsettings/ui/WalletSettingsScreen.kt b/features/wallet-settings/impl/src/main/kotlin/com/tangem/feature/walletsettings/ui/WalletSettingsScreen.kt index e3efc898cd..0b600daa13 100644 --- a/features/wallet-settings/impl/src/main/kotlin/com/tangem/feature/walletsettings/ui/WalletSettingsScreen.kt +++ b/features/wallet-settings/impl/src/main/kotlin/com/tangem/feature/walletsettings/ui/WalletSettingsScreen.kt @@ -167,6 +167,7 @@ private fun Content(state: WalletSettingsUM, modifier: Modifier = Modifier) { @Composable private fun ItemsBlock(model: WalletSettingsItemUM.WithItems, modifier: Modifier = Modifier) { + val description = model.description Column( modifier = modifier, horizontalAlignment = Alignment.Start, @@ -190,12 +191,16 @@ private fun ItemsBlock(model: WalletSettingsItemUM.WithItems, modifier: Modifier } } - Text( - modifier = Modifier.padding(horizontal = TangemTheme.dimens.spacing12), - text = model.description.resolveReference(), - color = TangemTheme.colors.text.tertiary, - style = TangemTheme.typography.caption2, - ) + AnimatedVisibility(visible = description != null) { + if (description != null) { + Text( + modifier = Modifier.padding(horizontal = TangemTheme.dimens.spacing12), + text = description.resolveReference(), + color = TangemTheme.colors.text.tertiary, + style = TangemTheme.typography.caption2, + ) + } + } } } diff --git a/features/wallet-settings/impl/src/main/kotlin/com/tangem/feature/walletsettings/utils/ItemsBuilder.kt b/features/wallet-settings/impl/src/main/kotlin/com/tangem/feature/walletsettings/utils/ItemsBuilder.kt index a103dee2de..8bde456990 100644 --- a/features/wallet-settings/impl/src/main/kotlin/com/tangem/feature/walletsettings/utils/ItemsBuilder.kt +++ b/features/wallet-settings/impl/src/main/kotlin/com/tangem/feature/walletsettings/utils/ItemsBuilder.kt @@ -144,7 +144,7 @@ internal class ItemsBuilder @Inject constructor() { onCardSettingsClick: () -> Unit, ) = WalletSettingsItemUM.WithItems( id = "card", - description = resourceReference(R.string.settings_card_settings_footer), + description = null, blocks = buildList { val isHotWallet = userWallet is UserWallet.Hot if (isHotWallet) {