Updated on 2026-08-14

This commit is contained in:
Tangem 2025-07-18 14:52:36 +05:00
parent 9244326396
commit 9fa341d0df
2 changed files with 11 additions and 4 deletions

View file

@ -29,6 +29,7 @@ internal fun SendCustomFee(
hasNotifications: Boolean,
onValueChange: (Int, String) -> Unit,
onNonceChange: (String) -> Unit,
displayNonceInput: Boolean,
nonce: String?,
modifier: Modifier = Modifier,
) {
@ -85,10 +86,12 @@ internal fun SendCustomFee(
}
}
}
Nonce(
onNonceChange = onNonceChange,
nonce = nonce,
)
if (displayNonceInput) {
Nonce(
onNonceChange = onNonceChange,
nonce = nonce,
)
}
}
}
}

View file

@ -41,6 +41,7 @@ internal fun SendFeeContent(state: FeeUM, clickIntents: SendFeeClickIntents) {
feeSelectorUM = feeSelectorUM,
onValueChange = clickIntents::onCustomFeeValueChange,
onNonceChange = clickIntents::onNonceChange,
displayNonceInput = state.displayNonceInput,
nonce = state.nonce?.toString().orEmpty(),
hasNotifications = hasNotifications,
)
@ -59,11 +60,13 @@ private fun LazyListScope.feeSelector(state: FeeUM.Content, clickIntents: SendFe
}
}
@Suppress("LongParameterList")
internal fun LazyListScope.customFee(
feeSelectorUM: FeeSelectorUM.Content,
hasNotifications: Boolean,
onValueChange: (Int, String) -> Unit,
onNonceChange: (String) -> Unit,
displayNonceInput: Boolean,
nonce: String?,
modifier: Modifier = Modifier,
) {
@ -74,6 +77,7 @@ internal fun LazyListScope.customFee(
hasNotifications = hasNotifications,
onValueChange = onValueChange,
onNonceChange = onNonceChange,
displayNonceInput = displayNonceInput,
nonce = nonce,
modifier = modifier
.fillMaxWidth()