Updated on 2026-08-14
This commit is contained in:
commit
91fd458dca
14 changed files with 251 additions and 271 deletions
|
|
@ -1,6 +1,5 @@
|
|||
package com.tangem.feature.wallet.child.organizetokens.model.transformer
|
||||
|
||||
import com.tangem.core.ui.ds.button.TangemButtonState
|
||||
import com.tangem.feature.wallet.child.organizetokens.entity.OrganizeTokensUM
|
||||
import com.tangem.utils.transformer.Transformer
|
||||
|
||||
|
|
@ -13,18 +12,10 @@ internal class OrganizeSortingProgressStateTransformer(
|
|||
isEnabled = !isSortingInProgress,
|
||||
),
|
||||
cancelButton = prevState.cancelButton.copy(
|
||||
state = if (isSortingInProgress) {
|
||||
TangemButtonState.Disabled
|
||||
} else {
|
||||
TangemButtonState.Default
|
||||
},
|
||||
isEnabled = !isSortingInProgress,
|
||||
),
|
||||
applyButton = prevState.applyButton.copy(
|
||||
state = if (isSortingInProgress) {
|
||||
TangemButtonState.Loading
|
||||
} else {
|
||||
TangemButtonState.Default
|
||||
},
|
||||
isLoading = isSortingInProgress,
|
||||
),
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ package com.tangem.feature.wallet.presentation.wallet.state.model
|
|||
import androidx.annotation.DrawableRes
|
||||
import androidx.compose.runtime.Immutable
|
||||
import com.tangem.core.ui.ds.button.TangemButtonShape
|
||||
import com.tangem.core.ui.ds.button.TangemButtonState
|
||||
import com.tangem.core.ui.ds.button.TangemButtonType
|
||||
import com.tangem.core.ui.ds.button.TangemButtonUM
|
||||
import com.tangem.core.ui.extensions.TextReference
|
||||
|
|
@ -31,11 +30,6 @@ internal sealed class WalletActionButtons(
|
|||
shape = TangemButtonShape.Rounded,
|
||||
onClick = onClick,
|
||||
isEnabled = isEnabled,
|
||||
state = if (isEnabled) {
|
||||
TangemButtonState.Default
|
||||
} else {
|
||||
TangemButtonState.Disabled
|
||||
},
|
||||
)
|
||||
|
||||
data class Buy(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue