Updated on 2026-08-14

This commit is contained in:
Tangem 2023-09-29 12:23:14 +05:00
parent 294c7139ee
commit fd29bcdc08
12 changed files with 29 additions and 23 deletions

View file

@ -414,7 +414,7 @@ internal object WalletPreviewData {
buttons = manageButtons,
bottomSheetConfig = bottomSheet,
marketPriceBlockState = MarketPriceBlockState.Content(
currencyName = "BTC",
currencySymbol = "BTC",
price = "98900.12$",
priceChangeConfig = PriceChangeState.Content(
valueInPercent = "5.16%",

View file

@ -117,6 +117,7 @@ internal class DefaultWalletRouter(private val reduxNavController: ReduxNavContr
TokenDetailsRouter.TOKEN_DETAILS_ARGS to TokenDetailsArguments(
currencyId = currency.id,
currencyName = currency.name,
currencySymbol = currency.symbol,
iconUrl = currency.iconUrl,
coinType = when (currency) {
is CryptoCurrency.Coin -> TokenDetailsArguments.CoinType.Native

View file

@ -38,7 +38,7 @@ internal class WalletSingleCurrencyLoadedBalanceConverter(
private fun convertContent(status: CryptoCurrencyStatus): WalletState {
return when (val state = currentStateProvider()) {
is WalletSingleCurrencyState.Content -> {
val currencyName = state.marketPriceBlockState.currencyName
val currencyName = state.marketPriceBlockState.currencySymbol
state.copy(
walletsListConfig = getUpdatedSelectedWallet(status = status.value, state = state),
@ -58,7 +58,7 @@ internal class WalletSingleCurrencyLoadedBalanceConverter(
is CryptoCurrencyStatus.NoQuote,
is CryptoCurrencyStatus.Loaded,
-> MarketPriceBlockState.Content(
currencyName = currencyName,
currencySymbol = currencyName,
price = formatPrice(status, appCurrencyProvider()),
priceChangeConfig = PriceChangeState.Content(
valueInPercent = formatPriceChange(status),

View file

@ -68,7 +68,7 @@ internal class WalletSkeletonStateConverter(
notifications = persistentListOf(),
bottomSheetConfig = null,
buttons = createButtons(),
marketPriceBlockState = MarketPriceBlockState.Loading(currencyName = currencyName),
marketPriceBlockState = MarketPriceBlockState.Loading(currencySymbol = currencyName),
txHistoryState = TxHistoryState.Content(
contentItems = MutableStateFlow(
value = TxHistoryState.getDefaultLoadingTransactions(clickIntents::onExploreClick),

View file

@ -68,7 +68,7 @@ internal class WalletsUnlockStateConverter(
bottomSheetConfig = null,
buttons = buttons,
marketPriceBlockState = MarketPriceBlockState.Loading(
currencyName = action.selectedWallet.getPrimaryCurrencyName(),
currencySymbol = action.selectedWallet.getPrimaryCurrencyName(),
),
txHistoryState = TxHistoryState.Content(
contentItems = MutableStateFlow(