From 49cd9db8dad21dae59c58c2ef3ed77c31778babd Mon Sep 17 00:00:00 2001 From: Tangem Date: Fri, 3 Jul 2026 23:05:18 +0500 Subject: [PATCH] Updated on 2026-08-14 --- .../impl/addtoportfolio/model/AddTokenUiBuilder.kt | 2 +- .../impl/managefunds/DefaultManageFundsComponent.kt | 4 +++- .../impl/managefunds/model/ManageFundsRouteUiSpec.kt | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/features/common-features/impl/src/main/java/com/tangem/features/commonfeatures/impl/addtoportfolio/model/AddTokenUiBuilder.kt b/features/common-features/impl/src/main/java/com/tangem/features/commonfeatures/impl/addtoportfolio/model/AddTokenUiBuilder.kt index 3356e8a39c..fc6d0e2afd 100644 --- a/features/common-features/impl/src/main/java/com/tangem/features/commonfeatures/impl/addtoportfolio/model/AddTokenUiBuilder.kt +++ b/features/common-features/impl/src/main/java/com/tangem/features/commonfeatures/impl/addtoportfolio/model/AddTokenUiBuilder.kt @@ -74,7 +74,7 @@ internal class AddTokenUiBuilder @Inject constructor( isEnabled = isAvailableNetwork, showProgress = false, isTangemIconVisible = isTangemIconVisible, - text = resourceReference(R.string.common_add), + text = resourceReference(R.string.common_confirm), onConfirmClick = onConfirmClick, ) val networkUM = createNetwork(selectedNetwork) diff --git a/features/common-features/impl/src/main/java/com/tangem/features/commonfeatures/impl/managefunds/DefaultManageFundsComponent.kt b/features/common-features/impl/src/main/java/com/tangem/features/commonfeatures/impl/managefunds/DefaultManageFundsComponent.kt index 355331a109..8354a085f3 100644 --- a/features/common-features/impl/src/main/java/com/tangem/features/commonfeatures/impl/managefunds/DefaultManageFundsComponent.kt +++ b/features/common-features/impl/src/main/java/com/tangem/features/commonfeatures/impl/managefunds/DefaultManageFundsComponent.kt @@ -190,8 +190,10 @@ internal class DefaultManageFundsComponent @AssistedInject constructor( onBackClick: () -> Unit, onCloseClick: () -> Unit, ) { + val spec = route.uiSpec(model.flowType) TangemTopBar( - title = route.uiSpec(model.flowType).title, + title = spec.title, + subtitle = spec.subtitle, type = TangemTopBarType.BottomSheet, startContent = if (canGoBack) { { diff --git a/features/common-features/impl/src/main/java/com/tangem/features/commonfeatures/impl/managefunds/model/ManageFundsRouteUiSpec.kt b/features/common-features/impl/src/main/java/com/tangem/features/commonfeatures/impl/managefunds/model/ManageFundsRouteUiSpec.kt index 46258a31b1..7fd98aecd9 100644 --- a/features/common-features/impl/src/main/java/com/tangem/features/commonfeatures/impl/managefunds/model/ManageFundsRouteUiSpec.kt +++ b/features/common-features/impl/src/main/java/com/tangem/features/commonfeatures/impl/managefunds/model/ManageFundsRouteUiSpec.kt @@ -7,6 +7,7 @@ import com.tangem.features.commonfeatures.impl.R internal data class ManageFundsRouteUiSpec( val title: TextReference, + val subtitle: TextReference?, val shouldApplyHorizontalPadding: Boolean, val shouldFillHeight: Boolean, ) @@ -16,21 +17,25 @@ internal fun ManageFundsModel.UiRoute.uiSpec(flowType: ManageFundsComponent.Flow return when (this) { ManageFundsModel.UiRoute.Loading -> ManageFundsRouteUiSpec( title = resourceReference(if (isTransfer) R.string.common_choose_token else R.string.common_add_funds), + subtitle = null, shouldApplyHorizontalPadding = false, shouldFillHeight = false, ) ManageFundsModel.UiRoute.ChooseToken -> ManageFundsRouteUiSpec( title = resourceReference(R.string.common_choose_token), + subtitle = null, shouldApplyHorizontalPadding = false, shouldFillHeight = true, ) ManageFundsModel.UiRoute.UserPortfolio -> ManageFundsRouteUiSpec( title = resourceReference(R.string.common_add_funds), + subtitle = resourceReference(R.string.common_choose_token), shouldApplyHorizontalPadding = false, shouldFillHeight = false, ) ManageFundsModel.UiRoute.TokenActions -> ManageFundsRouteUiSpec( title = resourceReference(if (isTransfer) R.string.common_transfer else R.string.common_get_token), + subtitle = null, shouldApplyHorizontalPadding = true, shouldFillHeight = true, )