Updated on 2026-08-14
This commit is contained in:
commit
e6d94aca61
7 changed files with 7 additions and 5 deletions
|
|
@ -15,4 +15,5 @@ enum class ExchangeAnalyticsStatus(val value: String) {
|
|||
Fail("Fail"),
|
||||
KYC("KYC"),
|
||||
Refunded("Refunded"),
|
||||
Cancelled("Canceled"),
|
||||
}
|
||||
|
|
@ -579,7 +579,7 @@
|
|||
<string name="token_item_no_rate">No rate</string>
|
||||
<string name="token_swap_promotion_message">Exchange this token for other assets in your portfolio</string>
|
||||
<string name="token_swap_promotion_title">Introducing cross-chain swaps</string>
|
||||
<string name="token_swap_promotion_button">Exchange now</string>
|
||||
<string name="token_swap_promotion_button">Swap now</string>
|
||||
<string name="transaction_history_contract_address">contract: %s</string>
|
||||
<string name="transaction_history_empty_transactions">You don\'t have any transactions yet</string>
|
||||
<string name="transaction_history_error_failed_to_load">Failed to load transaction history.\nClick on reload button to update the information.</string>
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ private fun darkThemeColors(): TangemColors {
|
|||
key = TangemColorPalette.White,
|
||||
),
|
||||
stroke = TangemColors.Stroke(
|
||||
primary = TangemColorPalette.Dark5,
|
||||
primary = TangemColorPalette.Dark4,
|
||||
secondary = TangemColorPalette.Dark1,
|
||||
transparency = TangemColorPalette.Dark6,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ internal sealed class TokenDetailsActionButton(val config: ActionButtonConfig) {
|
|||
*/
|
||||
data class Swap(val enabled: Boolean, override val onClick: () -> Unit) : TokenDetailsActionButton(
|
||||
config = ActionButtonConfig(
|
||||
text = TextReference.Res(id = R.string.common_exchange),
|
||||
text = TextReference.Res(id = R.string.common_swap),
|
||||
iconResId = R.drawable.ic_exchange_vertical_24,
|
||||
onClick = onClick,
|
||||
enabled = enabled,
|
||||
|
|
|
|||
|
|
@ -171,6 +171,7 @@ internal class ExchangeStatusFactory(
|
|||
ExchangeStatus.Failed -> ExchangeAnalyticsStatus.Fail
|
||||
ExchangeStatus.Finished -> ExchangeAnalyticsStatus.Done
|
||||
ExchangeStatus.Refunded -> ExchangeAnalyticsStatus.Refunded
|
||||
ExchangeStatus.Cancelled -> ExchangeAnalyticsStatus.Cancelled
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ internal sealed class WalletManageButton(val config: ActionButtonConfig) {
|
|||
*/
|
||||
data class Swap(override val enabled: Boolean, override val onClick: () -> Unit) : WalletManageButton(
|
||||
config = ActionButtonConfig(
|
||||
text = TextReference.Res(id = R.string.common_exchange),
|
||||
text = TextReference.Res(id = R.string.common_swap),
|
||||
iconResId = R.drawable.ic_exchange_vertical_24,
|
||||
onClick = onClick,
|
||||
enabled = enabled,
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ internal class TokenActionsProvider(
|
|||
action = { clickIntents.onMultiCurrencySendClick(cryptoCurrencyStatus) }
|
||||
}
|
||||
is TokenActionsState.ActionState.Swap -> {
|
||||
title = resourceReference(R.string.common_exchange)
|
||||
title = resourceReference(R.string.common_swap)
|
||||
icon = R.drawable.ic_exchange_horizontal_24
|
||||
action = { clickIntents.onSwapClick(cryptoCurrencyStatus) }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue