Updated on 2026-08-14
This commit is contained in:
parent
0ec0d79028
commit
9034dcd682
5 changed files with 9 additions and 13 deletions
|
|
@ -1,7 +1,7 @@
|
|||
package com.tangem.tap.common.entities
|
||||
|
||||
import com.tangem.tap.common.toggleWidget.ProgressState
|
||||
import com.tangem.tap.features.send.redux.states.ButtonState
|
||||
import com.tangem.tap.features.wallet.redux.ProgressState
|
||||
|
||||
open class Button(val enabled: Boolean)
|
||||
|
||||
|
|
@ -11,7 +11,7 @@ open class IndeterminateProgressButton(
|
|||
|
||||
val progressState: ProgressState
|
||||
get() = when (state) {
|
||||
ButtonState.PROGRESS -> ProgressState.Progress()
|
||||
else -> ProgressState.None
|
||||
ButtonState.PROGRESS -> ProgressState.Loading
|
||||
else -> ProgressState.Done
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue