Updated on 2026-08-14
This commit is contained in:
parent
35a6f43bf3
commit
63e7f40fd2
7 changed files with 15 additions and 4 deletions
|
|
@ -1,9 +1,11 @@
|
|||
package com.tangem.features.account.archived.entity
|
||||
|
||||
import androidx.compose.runtime.Immutable
|
||||
import com.tangem.common.ui.account.CryptoPortfolioIconUM
|
||||
import com.tangem.core.ui.extensions.TextReference
|
||||
import kotlinx.collections.immutable.ImmutableList
|
||||
|
||||
@Immutable
|
||||
internal sealed interface AccountArchivedUM {
|
||||
val onCloseClick: () -> Unit
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.tangem.features.account.createedit.entity
|
||||
|
||||
import androidx.compose.runtime.Immutable
|
||||
import com.tangem.common.ui.account.AccountNameUM
|
||||
import com.tangem.common.ui.account.CryptoPortfolioIconUM
|
||||
import com.tangem.core.ui.extensions.TextReference
|
||||
|
|
@ -23,6 +24,7 @@ internal data class AccountCreateEditUM(
|
|||
val onNameChange: (AccountNameUM) -> Unit,
|
||||
)
|
||||
|
||||
@Immutable
|
||||
sealed interface DerivationInfo {
|
||||
val text: TextReference
|
||||
val index: Int?
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.tangem.features.account.details.entity
|
||||
|
||||
import androidx.compose.runtime.Immutable
|
||||
import com.tangem.common.ui.account.CryptoPortfolioIconUM
|
||||
import com.tangem.core.ui.extensions.TextReference
|
||||
|
||||
|
|
@ -13,6 +14,7 @@ internal data class AccountDetailsUM(
|
|||
val onManageTokensClick: () -> Unit,
|
||||
) {
|
||||
|
||||
@Immutable
|
||||
sealed interface ArchiveMode {
|
||||
data object None : ArchiveMode
|
||||
data class Available(
|
||||
|
|
|
|||
|
|
@ -1,11 +1,13 @@
|
|||
package com.tangem.features.markets.portfolio.impl.ui.state
|
||||
|
||||
import androidx.compose.runtime.Immutable
|
||||
import com.tangem.common.ui.account.AccountTitleUM
|
||||
import com.tangem.core.ui.components.token.state.TokenItemState
|
||||
import com.tangem.core.ui.extensions.TextReference
|
||||
import com.tangem.domain.models.wallet.UserWalletId
|
||||
import kotlinx.collections.immutable.ImmutableList
|
||||
|
||||
@Immutable
|
||||
internal sealed interface PortfolioListItem {
|
||||
val id: String
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
package com.tangem.features.nft.collections.entity
|
||||
|
||||
import androidx.annotation.DrawableRes
|
||||
import androidx.compose.runtime.Immutable
|
||||
import com.tangem.common.ui.account.AccountTitleUM
|
||||
import com.tangem.core.ui.extensions.TextReference
|
||||
|
||||
@Immutable
|
||||
internal sealed interface NFTCollectionItem {
|
||||
val id: String
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,10 +6,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
|
|||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.foundation.rememberScrollState
|
||||
import androidx.compose.foundation.verticalScroll
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.mutableStateOf
|
||||
import androidx.compose.runtime.remember
|
||||
import androidx.compose.runtime.*
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.lifecycle.compose.collectAsStateWithLifecycle
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
package com.tangem.feature.referral.models
|
||||
|
||||
import androidx.annotation.DrawableRes
|
||||
import androidx.compose.runtime.Immutable
|
||||
import com.tangem.common.ui.account.PortfolioSelectUM
|
||||
import com.tangem.core.ui.components.token.state.TokenItemState
|
||||
import com.tangem.feature.referral.domain.models.ExpectedAwards
|
||||
|
|
@ -14,6 +15,7 @@ internal data class ReferralStateHolder(
|
|||
|
||||
data class HeaderState(val onBackClicked: () -> Unit)
|
||||
|
||||
@Immutable
|
||||
sealed interface ReferralInfoContentState {
|
||||
val award: String
|
||||
val networkName: String
|
||||
|
|
@ -22,6 +24,7 @@ internal data class ReferralStateHolder(
|
|||
val accountAward: AccountAward?
|
||||
}
|
||||
|
||||
@Immutable
|
||||
sealed interface ReferralInfoState {
|
||||
data class ParticipantContent(
|
||||
override val award: String,
|
||||
|
|
@ -49,6 +52,7 @@ internal data class ReferralStateHolder(
|
|||
data object Loading : ReferralInfoState
|
||||
}
|
||||
|
||||
@Immutable
|
||||
data class ErrorSnackbar(
|
||||
val throwable: Throwable,
|
||||
val onOkClicked: () -> Unit,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue