Updated on 2026-08-14
This commit is contained in:
parent
8c99e06f37
commit
46995368e3
2 changed files with 5 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ fun CurrenciesScreen(
|
|||
visible = tokensState.value.currencies.isEmpty(),
|
||||
enter = fadeIn(),
|
||||
exit = fadeOut()
|
||||
){
|
||||
) {
|
||||
Box(
|
||||
contentAlignment = Alignment.Center,
|
||||
modifier = Modifier.fillMaxSize()
|
||||
|
|
@ -93,8 +93,9 @@ fun CurrenciesScreen(
|
|||
exit = fadeOut(animationSpec = tween(1000))
|
||||
) {
|
||||
Column {
|
||||
if (tokensState.value.scanResponse?.card?.useOldStyleDerivation == true) CurrenciesWarning()
|
||||
val showHeader = tokensState.value.scanResponse?.card?.useOldStyleDerivation == true
|
||||
ListOfCurrencies(
|
||||
header = { if (showHeader) CurrenciesWarning() },
|
||||
currencies = tokensState.value.currencies,
|
||||
nonRemovableTokens = tokensState.value.nonRemovableTokens,
|
||||
nonRemovableBlockchains = tokensState.value.nonRemovableBlockchains,
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ import com.tangem.tap.features.tokens.redux.TokenWithBlockchain
|
|||
|
||||
@Composable
|
||||
fun ListOfCurrencies(
|
||||
header: @Composable ()->Unit,
|
||||
currencies: List<Currency>,
|
||||
nonRemovableTokens: List<ContractAddress>,
|
||||
nonRemovableBlockchains: List<Blockchain>,
|
||||
|
|
@ -54,6 +55,7 @@ fun ListOfCurrencies(
|
|||
.contains(searchInput)
|
||||
}.toList()
|
||||
}
|
||||
item { header() }
|
||||
items(filteredCurrencies) { currency ->
|
||||
CurrencyItem(
|
||||
currency = currency,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue