Updated on 2026-08-14
This commit is contained in:
parent
0c55931ddc
commit
7f17dfa2e3
6 changed files with 15 additions and 45 deletions
|
|
@ -23,19 +23,13 @@ internal fun DestinationBlock(
|
|||
isEditingDisabled: Boolean,
|
||||
onClick: () -> Unit,
|
||||
) {
|
||||
val destinationUM = destinationUM as? DestinationUM.Content ?: return
|
||||
|
||||
val backgroundColor = if (isEditingDisabled) {
|
||||
TangemTheme.colors.button.disabled
|
||||
} else {
|
||||
TangemTheme.colors.background.action
|
||||
}
|
||||
if (destinationUM !is DestinationUM.Content) return
|
||||
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.clip(TangemTheme.shapes.roundedCornersXMedium)
|
||||
.background(backgroundColor)
|
||||
.background(TangemTheme.colors.background.action)
|
||||
.clickable(enabled = !isClickDisabled && !isEditingDisabled, onClick = onClick)
|
||||
.padding(TangemTheme.dimens.spacing12),
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -32,17 +32,11 @@ internal fun FeeBlock(feeUM: FeeUM, isClickEnabled: Boolean, onClick: () -> Unit
|
|||
val feeSelectorUM = feeUM.feeSelectorUM as? FeeSelectorUM.Content
|
||||
val isEditingDisabled = feeSelectorUM?.fees is TransactionFee.Single
|
||||
|
||||
val backgroundColor = if (isEditingDisabled) {
|
||||
TangemTheme.colors.button.disabled
|
||||
} else {
|
||||
TangemTheme.colors.background.action
|
||||
}
|
||||
|
||||
Column(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.clip(TangemTheme.shapes.roundedCornersXMedium)
|
||||
.background(backgroundColor)
|
||||
.background(TangemTheme.colors.background.action)
|
||||
.clickable(enabled = isClickEnabled && !isEditingDisabled, onClick = onClick)
|
||||
.padding(12.dp),
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue