Updated on 2026-08-14

This commit is contained in:
Tangem 2024-07-12 16:30:49 +02:00
parent 0391e50dc8
commit cb36d5cf25
28 changed files with 78 additions and 61 deletions

View file

@ -25,7 +25,7 @@ import com.tangem.core.ui.extensions.TextReference
import com.tangem.core.ui.extensions.resolveReference
import com.tangem.core.ui.res.TangemThemePreview
import com.tangem.core.ui.res.TangemTheme
import com.tangem.utils.Strings
import com.tangem.utils.StringsSigns
@Composable
fun SelectorRowItem(
@ -128,7 +128,7 @@ private fun RowScope.SelectorValueContent(
)
if (postDot != null) {
Text(
text = Strings.DOT,
text = StringsSigns.DOT,
style = TangemTheme.typography.caption2,
color = TangemTheme.colors.text.primary1,
textAlign = TextAlign.Center,

View file

@ -34,7 +34,7 @@ import com.tangem.core.ui.extensions.resourceReference
import com.tangem.core.ui.extensions.stringReference
import com.tangem.core.ui.res.TangemTheme
import com.tangem.core.ui.res.TangemThemePreview
import com.tangem.utils.Strings
import com.tangem.utils.StringsSigns
import java.util.UUID
/**
@ -258,7 +258,7 @@ private fun Amount(state: TransactionState, isBalanceHidden: Boolean, modifier:
when (state) {
is TransactionState.Content -> {
Text(
text = if (isBalanceHidden) Strings.STARS else state.amount,
text = if (isBalanceHidden) StringsSigns.STARS else state.amount,
modifier = modifier,
textAlign = TextAlign.End,
color = when (state.status) {

View file

@ -1,6 +1,8 @@
package com.tangem.core.ui.utils
import com.tangem.domain.tokens.model.CryptoCurrency
import com.tangem.utils.StringsSigns.DASH_SIGN
import com.tangem.utils.StringsSigns.LOWER_SIGN
import timber.log.Timber
import java.math.BigDecimal
import java.math.RoundingMode
@ -11,8 +13,8 @@ import java.util.Locale
object BigDecimalFormatter {
const val EMPTY_BALANCE_SIGN = ""
const val CAN_BE_LOWER_SIGN = "<"
const val EMPTY_BALANCE_SIGN = DASH_SIGN
const val CAN_BE_LOWER_SIGN = LOWER_SIGN
private val FORMAT_THRESHOLD = BigDecimal("0.01")
private const val TEMP_CURRENCY_CODE = "USD"