Updated on 2026-08-14
This commit is contained in:
commit
0bedc513a7
7 changed files with 14 additions and 2 deletions
|
|
@ -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,
|
||||
shouldShowApproximatePrefix: 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 (shouldShowApproximatePrefix) StringsSigns.TILDE_SIGN + firstAmount else firstAmount,
|
||||
secondAmount = secondAmount,
|
||||
isClickDisabled = isClickDisabled,
|
||||
isEditingDisabled = isEditingDisabled,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue