Updated on 2026-08-14
This commit is contained in:
parent
e51c82e615
commit
f2585c4134
9 changed files with 46 additions and 23 deletions
|
|
@ -1,5 +1,6 @@
|
|||
package com.tangem.features.staking.impl.presentation.state.transformers.amount
|
||||
|
||||
import androidx.compose.ui.text.input.ImeAction
|
||||
import com.tangem.common.extensions.isZero
|
||||
import com.tangem.common.ui.amountScreen.models.AmountState
|
||||
import com.tangem.core.ui.extensions.resourceReference
|
||||
|
|
@ -31,6 +32,7 @@ internal class AmountRequirementStateTransformer(
|
|||
val isRequirementError = isRequirementError(prevState, amountRequirements)
|
||||
return if (isRequirementError) {
|
||||
prevState.copy(
|
||||
isPrimaryButtonEnabled = false,
|
||||
amountTextField = prevState.amountTextField.copy(
|
||||
isError = true,
|
||||
error = resourceReference(
|
||||
|
|
@ -43,6 +45,9 @@ internal class AmountRequirementStateTransformer(
|
|||
),
|
||||
),
|
||||
),
|
||||
keyboardOptions = prevState.amountTextField.keyboardOptions.copy(
|
||||
imeAction = ImeAction.None,
|
||||
),
|
||||
),
|
||||
)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue