From 144bbc3be56263b0b69ccd62697ba5bf39062ff0 Mon Sep 17 00:00:00 2001 From: Tangem Date: Tue, 21 May 2024 16:55:42 +0500 Subject: [PATCH] Updated on 2026-08-14 --- .../impl/presentation/ui/SendNavigationButtons.kt | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/features/send/impl/src/main/java/com/tangem/features/send/impl/presentation/ui/SendNavigationButtons.kt b/features/send/impl/src/main/java/com/tangem/features/send/impl/presentation/ui/SendNavigationButtons.kt index 93cc9067fd..3f5d13ae28 100644 --- a/features/send/impl/src/main/java/com/tangem/features/send/impl/presentation/ui/SendNavigationButtons.kt +++ b/features/send/impl/src/main/java/com/tangem/features/send/impl/presentation/ui/SendNavigationButtons.kt @@ -4,7 +4,10 @@ import androidx.compose.animation.* import androidx.compose.animation.core.tween import androidx.compose.foundation.background import androidx.compose.foundation.clickable -import androidx.compose.foundation.layout.* +import androidx.compose.foundation.layout.Column +import androidx.compose.foundation.layout.Row +import androidx.compose.foundation.layout.fillMaxWidth +import androidx.compose.foundation.layout.padding import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material3.Icon import androidx.compose.material3.Text @@ -35,6 +38,7 @@ import com.tangem.features.send.impl.presentation.state.SendUiCurrentScreen import com.tangem.features.send.impl.presentation.state.SendUiState import com.tangem.features.send.impl.presentation.state.SendUiStateType import com.tangem.features.send.impl.presentation.utils.getFiatFormatted +import com.tangem.features.send.impl.presentation.utils.getFiatString @Composable internal fun SendNavigationButtons( @@ -180,12 +184,12 @@ private fun SendingText( currencySymbol = feeState.appCurrency.symbol, currencyCode = feeState.appCurrency.code, ) - val feeValue = getFiatFormatted( + val feeValue = getFiatString( value = feeState.fee?.amount?.value, - currencySymbol = feeState.appCurrency.symbol, - currencyCode = feeState.appCurrency.code, + rate = feeState.rate, + appCurrency = feeState.appCurrency, ) - val textResource = remember(sendingValue, feeValue) { + val textResource = remember(uiState) { resourceReference( id = R.string.send_summary_transaction_description, formatArgs = wrappedList(sendingValue, feeValue),