Updated on 2026-08-14
This commit is contained in:
parent
9a8ff1830d
commit
a0798cfef2
252 changed files with 247 additions and 5857 deletions
|
|
@ -4,10 +4,7 @@ import androidx.annotation.DrawableRes
|
|||
import androidx.compose.ui.text.input.TextFieldValue
|
||||
import com.tangem.core.ui.components.bottomsheets.TangemBottomSheetConfig
|
||||
import com.tangem.core.ui.components.notifications.NotificationConfig
|
||||
import com.tangem.core.ui.components.states.Item
|
||||
import com.tangem.core.ui.components.states.SelectableItemsState
|
||||
import com.tangem.domain.tokens.model.CryptoCurrencyStatus
|
||||
import com.tangem.feature.swap.domain.models.ui.TxFee
|
||||
import com.tangem.feature.swap.models.states.FeeItemState
|
||||
import com.tangem.feature.swap.models.states.ProviderState
|
||||
|
||||
|
|
@ -70,29 +67,6 @@ data class SwapButton(
|
|||
val onClick: () -> Unit,
|
||||
)
|
||||
|
||||
sealed class FeeState(open val tangemFee: Double) {
|
||||
|
||||
object Empty : FeeState(0.0)
|
||||
|
||||
data class Loaded(
|
||||
override val tangemFee: Double,
|
||||
override val state: SelectableItemsState<TxFee>?,
|
||||
val onSelectItem: (Item<TxFee>) -> Unit,
|
||||
) : FeeState(tangemFee), FeeSelectState
|
||||
|
||||
object Loading : FeeState(0.0)
|
||||
|
||||
data class NotEnoughFundsWarning(
|
||||
override val tangemFee: Double,
|
||||
override val state: SelectableItemsState<TxFee>?,
|
||||
val onSelectItem: (Item<TxFee>) -> Unit,
|
||||
) : FeeState(tangemFee), FeeSelectState
|
||||
}
|
||||
|
||||
sealed interface FeeSelectState {
|
||||
val state: SelectableItemsState<TxFee>?
|
||||
}
|
||||
|
||||
sealed interface TransactionCardType {
|
||||
|
||||
data class SendCard(
|
||||
|
|
|
|||
|
|
@ -2,8 +2,7 @@ package com.tangem.feature.swap.ui
|
|||
|
||||
import androidx.activity.compose.BackHandler
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material.*
|
||||
import androidx.compose.material3.*
|
||||
import androidx.compose.material3.Scaffold
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.Modifier
|
||||
import com.tangem.core.ui.res.TangemTheme
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue