Updated on 2026-08-14

This commit is contained in:
Tangem 2026-07-06 23:42:13 +05:00
parent fa91188e72
commit 276a28800e
2 changed files with 4 additions and 8 deletions

View file

@ -16,13 +16,9 @@ internal enum class SwapMarketCategory(
val title: TextReference,
val order: TokenMarketListConfig.Order,
) {
Trending(
title = resourceReference(R.string.markets_sort_by_trending_title),
order = TokenMarketListConfig.Order.Trending,
),
ExperiencedBuyers(
title = resourceReference(R.string.markets_sort_by_experienced_buyers_title),
order = TokenMarketListConfig.Order.Buyers,
MarketCap(
title = resourceReference(R.string.markets_sort_by_rating_title),
order = TokenMarketListConfig.Order.ByRating,
),
TopGainers(
title = resourceReference(R.string.markets_sort_by_top_gainers_title),

View file

@ -51,7 +51,7 @@ internal class MarketBlockDelegate @AssistedInject constructor(
private val visibleMarketItemIds = MutableStateFlow<List<CryptoCurrency.RawID>>(emptyList())
private val visibleDefaultMarketItemIds = MutableStateFlow<List<CryptoCurrency.RawID>>(emptyList())
private val selectedCategoryFlow = MutableStateFlow(SwapMarketCategory.Trending)
private val selectedCategoryFlow = MutableStateFlow(SwapMarketCategory.MarketCap)
val addToPortfolioSlot: SlotNavigation<AddToPortfolioRoute> = SlotNavigation()
val addToPortfolioManager: AddToPortfolioManager = addToPortfolioManagerFactory.create(