Updated on 2026-08-14

This commit is contained in:
Tangem 2026-04-15 15:07:44 +02:00
parent ce5f535ac5
commit b04f28cf04
2 changed files with 6 additions and 1 deletions

View file

@ -32,6 +32,7 @@ import com.tangem.core.ui.format.bigdecimal.uncapped
import com.tangem.core.ui.res.TangemTheme
import com.tangem.core.ui.res.TangemThemePreview
import com.tangem.core.ui.test.BaseAmountBlockTestTags
import com.tangem.utils.StringsSigns
@Composable
fun AmountBlockV2(
@ -39,6 +40,7 @@ fun AmountBlockV2(
isClickDisabled: Boolean,
isEditingDisabled: Boolean,
modifier: Modifier = Modifier,
showApproximatePrefix: Boolean = false,
onClick: (() -> Unit)? = null,
extraContent: @Composable () -> Unit = {},
) {
@ -71,7 +73,7 @@ fun AmountBlockV2(
balance = amountState.availableBalanceCrypto,
currencyTitle = currencyTitle,
currencyIconState = amountState.tokenIconState,
firstAmount = firstAmount,
firstAmount = if (showApproximatePrefix) StringsSigns.TILDE_SIGN + firstAmount else firstAmount,
secondAmount = secondAmount,
isClickDisabled = isClickDisabled,
isEditingDisabled = isEditingDisabled,