Updated on 2026-08-14
This commit is contained in:
parent
e29dd815ee
commit
aa89d11b7c
11 changed files with 284 additions and 35 deletions
|
|
@ -13,12 +13,7 @@ import com.tangem.core.ui.res.TangemTheme
|
|||
import com.tangem.features.tokendetails.impl.R
|
||||
import com.tangem.utils.transformer.Transformer
|
||||
import kotlinx.collections.immutable.persistentListOf
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
import kotlinx.coroutines.flow.MutableStateFlow
|
||||
import kotlinx.coroutines.flow.StateFlow
|
||||
import kotlinx.coroutines.flow.distinctUntilChanged
|
||||
import kotlinx.coroutines.flow.map
|
||||
import kotlinx.coroutines.flow.update
|
||||
import kotlinx.coroutines.flow.*
|
||||
import javax.inject.Inject
|
||||
|
||||
@ModelScoped
|
||||
|
|
@ -51,14 +46,14 @@ internal class TokenDetailsStateController @Inject constructor() {
|
|||
),
|
||||
balanceBlockUM = TokenDetailsBalanceBlockUM.Loading(
|
||||
addFundsButton = TangemButtonUM(
|
||||
text = resourceReference(R.string.tangempay_card_details_add_funds),
|
||||
text = resourceReference(R.string.actionbutton_addfunds_title),
|
||||
tangemIconUM = TangemIconUM.Icon(iconRes = R.drawable.ic_arrow_down_24),
|
||||
onClick = { },
|
||||
isEnabled = true,
|
||||
type = TangemButtonType.Secondary,
|
||||
),
|
||||
swapButton = TangemButtonUM(
|
||||
text = resourceReference(R.string.common_swap),
|
||||
text = resourceReference(R.string.actionbutton_swap_title),
|
||||
tangemIconUM = TangemIconUM.Icon(
|
||||
iconRes = R.drawable.ic_exchange_default_24,
|
||||
tintReference = { TangemTheme.colors2.graphic.neutral.quaternary },
|
||||
|
|
@ -68,7 +63,7 @@ internal class TokenDetailsStateController @Inject constructor() {
|
|||
type = TangemButtonType.Secondary,
|
||||
),
|
||||
transferButton = TangemButtonUM(
|
||||
text = resourceReference(R.string.common_transfer),
|
||||
text = resourceReference(R.string.actionbutton_transfer_title),
|
||||
tangemIconUM = TangemIconUM.Icon(iconRes = R.drawable.ic_arrow_up_24),
|
||||
onClick = { },
|
||||
isEnabled = true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue