Updated on 2026-08-14
This commit is contained in:
parent
7e39873b23
commit
35ac528768
6 changed files with 30 additions and 24 deletions
|
|
@ -1,3 +1,17 @@
|
|||
package com.tangem.tap.common.entities
|
||||
|
||||
open class Button(val enabled: Boolean)
|
||||
import com.tangem.tap.common.toggleWidget.ProgressState
|
||||
import com.tangem.tap.features.send.redux.states.ButtonState
|
||||
|
||||
open class Button(val enabled: Boolean)
|
||||
|
||||
open class IndeterminateProgressButton(
|
||||
val state: ButtonState
|
||||
) : Button(state != ButtonState.DISABLED) {
|
||||
|
||||
val progressState: ProgressState
|
||||
get() = when (state) {
|
||||
ButtonState.PROGRESS -> ProgressState.Progress()
|
||||
else -> ProgressState.None
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue