Updated on 2026-08-14
This commit is contained in:
parent
4ea8243da3
commit
f009a78876
12 changed files with 104 additions and 52 deletions
|
|
@ -2,7 +2,9 @@ package com.tangem.features.send.v2.api.subcomponents.destination.entity
|
|||
|
||||
import androidx.annotation.DrawableRes
|
||||
import androidx.compose.runtime.Immutable
|
||||
import com.tangem.common.ui.account.AccountTitleUM
|
||||
import com.tangem.core.ui.extensions.TextReference
|
||||
import com.tangem.domain.models.account.AccountId
|
||||
import com.tangem.domain.models.network.Network
|
||||
import com.tangem.domain.models.wallet.UserWalletId
|
||||
|
||||
|
|
@ -11,6 +13,7 @@ data class DestinationRecipientListUM(
|
|||
val id: String,
|
||||
val title: TextReference = TextReference.Companion.EMPTY,
|
||||
val subtitle: TextReference = TextReference.Companion.EMPTY,
|
||||
val accountTitleUM: AccountTitleUM.Account? = null,
|
||||
val timestamp: TextReference? = null,
|
||||
val subtitleEndOffset: Int = 0,
|
||||
@DrawableRes val subtitleIconRes: Int? = null,
|
||||
|
|
@ -18,5 +21,6 @@ data class DestinationRecipientListUM(
|
|||
val isLoading: Boolean = false,
|
||||
val userWalletId: UserWalletId? = null,
|
||||
val network: Network? = null,
|
||||
val accountId: AccountId? = null,
|
||||
val address: String? = null,
|
||||
)
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
package com.tangem.features.send.v2.api.subcomponents.destination.entity
|
||||
|
||||
import androidx.compose.runtime.Immutable
|
||||
import com.tangem.common.ui.account.AccountTitleUM
|
||||
import kotlinx.collections.immutable.ImmutableList
|
||||
|
||||
@Immutable
|
||||
|
|
@ -16,10 +15,10 @@ sealed class DestinationUM {
|
|||
val recent: ImmutableList<DestinationRecipientListUM>,
|
||||
val wallets: ImmutableList<DestinationRecipientListUM>,
|
||||
val networkName: String,
|
||||
val accountTitleUM: AccountTitleUM?,
|
||||
val isValidating: Boolean = false,
|
||||
val isInitialized: Boolean = false,
|
||||
val isRecentHidden: Boolean,
|
||||
val isAccountsMode: Boolean? = null,
|
||||
) : DestinationUM()
|
||||
|
||||
data class Empty(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue