Updated on 2026-08-14
This commit is contained in:
parent
f209babd03
commit
42a1d544f5
2 changed files with 6 additions and 5 deletions
|
|
@ -37,6 +37,7 @@ internal fun StakingConfirmationContent(
|
|||
type: StakingActionCommonType,
|
||||
) {
|
||||
if (state !is StakingStates.ConfirmationState.Data) return
|
||||
val isEnterAction = type == StakingActionCommonType.ENTER
|
||||
|
||||
Column(
|
||||
modifier = Modifier
|
||||
|
|
@ -58,11 +59,11 @@ internal fun StakingConfirmationContent(
|
|||
}
|
||||
AmountBlock(
|
||||
amountState = amountState,
|
||||
isClickDisabled = true,
|
||||
isEditingDisabled = true,
|
||||
onClick = {},
|
||||
isClickDisabled = !isEnterAction,
|
||||
isEditingDisabled = !isEnterAction,
|
||||
onClick = clickIntents::onPrevClick,
|
||||
)
|
||||
if (type == StakingActionCommonType.ENTER) {
|
||||
if (isEnterAction) {
|
||||
ValidatorBlock(validatorState = state.validatorState, onClick = clickIntents::openValidators)
|
||||
}
|
||||
StakingFeeBlock(feeState = state.feeState)
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ internal fun StakingFeeBlock(feeState: FeeState) {
|
|||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.clip(TangemTheme.shapes.roundedCornersXMedium)
|
||||
.background(TangemTheme.colors.background.action)
|
||||
.background(TangemTheme.colors.button.disabled)
|
||||
.padding(TangemTheme.dimens.spacing12),
|
||||
) {
|
||||
Text(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue