Updated on 2026-08-14
This commit is contained in:
commit
26a872e96b
4 changed files with 12 additions and 14 deletions
|
|
@ -262,14 +262,12 @@ private fun Content(
|
|||
}
|
||||
}
|
||||
is TransactionCardType.SendCard -> {
|
||||
AnimatedContent(targetState = textFieldValue, label = "") {
|
||||
AutoSizeTextField(
|
||||
modifier = sumTextModifier,
|
||||
textFieldValue = it ?: TextFieldValue(),
|
||||
onAmountChange = { type.onAmountChanged(it) },
|
||||
onFocusChange = type.onFocusChanged,
|
||||
)
|
||||
}
|
||||
AutoSizeTextField(
|
||||
modifier = sumTextModifier,
|
||||
textFieldValue = textFieldValue ?: TextFieldValue(),
|
||||
onAmountChange = { type.onAmountChanged(it) },
|
||||
onFocusChange = type.onFocusChanged,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ internal data class SwapTransactionsState(
|
|||
val fromFiatAmount: String,
|
||||
val fromCurrencyIcon: TokenIconState,
|
||||
val onClick: () -> Unit,
|
||||
val onGoToProviderClick: () -> Unit,
|
||||
val onGoToProviderClick: (String) -> Unit,
|
||||
)
|
||||
|
||||
internal class ExchangeStatusState(
|
||||
|
|
|
|||
|
|
@ -96,11 +96,11 @@ internal class TokenDetailsSwapTransactionsStateConverter(
|
|||
fromFiatAmount = getFiatAmount(fromFiatAmount),
|
||||
fromCurrencyIcon = iconStateConverter.convert(fromCurrency),
|
||||
onClick = { clickIntents.onSwapTransactionClick(transaction.txId, transaction.status?.status) },
|
||||
onGoToProviderClick = {
|
||||
onGoToProviderClick = { url ->
|
||||
analyticsEventsHandlerProvider().send(
|
||||
TokenExchangeAnalyticsEvent.GoToProviderStatus(cryptoCurrency.symbol),
|
||||
)
|
||||
clickIntents.onGoToProviderClick(url = transaction.status?.txUrl.orEmpty())
|
||||
clickIntents.onGoToProviderClick(url = url)
|
||||
},
|
||||
),
|
||||
)
|
||||
|
|
@ -194,6 +194,7 @@ internal class TokenDetailsSwapTransactionsStateConverter(
|
|||
status = ExchangeStatus.New,
|
||||
text = when {
|
||||
isNew -> TextReference.Res(R.string.express_exchange_status_receiving_active)
|
||||
isNewDone -> TextReference.Res(R.string.express_exchange_status_received)
|
||||
else -> TextReference.Res(R.string.express_exchange_status_receiving)
|
||||
},
|
||||
isActive = isNew,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
package com.tangem.feature.tokendetails.presentation.tokendetails.ui.components.exchange
|
||||
|
||||
import androidx.compose.animation.AnimatedContent
|
||||
import androidx.compose.foundation.background
|
||||
import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.Text
|
||||
|
|
@ -78,8 +77,8 @@ private fun ExchangeStatusBottomSheetContent(content: ExchangeStatusBottomSheetC
|
|||
SpacerH12()
|
||||
ExchangeStatusBlock(
|
||||
statuses = config.statuses,
|
||||
showLink = notification.value == null,
|
||||
onClick = config.onGoToProviderClick,
|
||||
showLink = notification.value == null && config.txUrl != null,
|
||||
onClick = { config.onGoToProviderClick(config.txUrl.orEmpty()) },
|
||||
)
|
||||
AnimatedContent(
|
||||
targetState = notification.value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue