Updated on 2026-08-14
This commit is contained in:
parent
8094af242d
commit
b326b63a7c
4 changed files with 6 additions and 6 deletions
|
|
@ -178,7 +178,7 @@ internal class GetMultiWalletWarningsFactory @Inject constructor(
|
||||||
is PaymentAccountStatusValue.Error.NotSynced -> WalletNotification.Warning.TangemPayRefreshNeeded(
|
is PaymentAccountStatusValue.Error.NotSynced -> WalletNotification.Warning.TangemPayRefreshNeeded(
|
||||||
buttonText = when (userWallet) {
|
buttonText = when (userWallet) {
|
||||||
is UserWallet.Cold -> resourceReference(id = R.string.home_button_scan)
|
is UserWallet.Cold -> resourceReference(id = R.string.home_button_scan)
|
||||||
is UserWallet.Hot -> resourceReference(id = R.string.tangempay_sync_needed_restore_access)
|
is UserWallet.Hot -> resourceReference(id = R.string.tangempay_sync_needed_button)
|
||||||
},
|
},
|
||||||
onRefreshClick = { walletClickIntents.onRefreshPayToken(userWallet) },
|
onRefreshClick = { walletClickIntents.onRefreshPayToken(userWallet) },
|
||||||
shouldShowProgress = false,
|
shouldShowProgress = false,
|
||||||
|
|
|
||||||
|
|
@ -251,7 +251,7 @@ internal class GetWalletNotificationsFactory @Inject constructor(
|
||||||
is PaymentAccountStatusValue.Error.NotSynced -> WalletNotificationUM.TangemPayRefreshNeeded(
|
is PaymentAccountStatusValue.Error.NotSynced -> WalletNotificationUM.TangemPayRefreshNeeded(
|
||||||
buttonText = when (userWallet) {
|
buttonText = when (userWallet) {
|
||||||
is UserWallet.Cold -> resourceReference(id = R.string.home_button_scan)
|
is UserWallet.Cold -> resourceReference(id = R.string.home_button_scan)
|
||||||
is UserWallet.Hot -> resourceReference(id = R.string.tangempay_sync_needed_restore_access)
|
is UserWallet.Hot -> resourceReference(id = R.string.tangempay_sync_needed_button)
|
||||||
},
|
},
|
||||||
onRefreshClick = { walletClickIntents.onRefreshPayToken(userWallet) },
|
onRefreshClick = { walletClickIntents.onRefreshPayToken(userWallet) },
|
||||||
shouldShowProgress = false,
|
shouldShowProgress = false,
|
||||||
|
|
|
||||||
|
|
@ -126,8 +126,8 @@ sealed class WalletNotification(val config: NotificationConfig) {
|
||||||
private val buttonText: TextReference,
|
private val buttonText: TextReference,
|
||||||
private val shouldShowProgress: Boolean,
|
private val shouldShowProgress: Boolean,
|
||||||
) : Warning(
|
) : Warning(
|
||||||
title = resourceReference(id = R.string.tangempay_payment_account_sync_needed),
|
title = resourceReference(id = R.string.tangempay_sync_needed_title),
|
||||||
subtitle = resourceReference(id = R.string.tangempay_use_tangem_device_to_restore_payment_account),
|
subtitle = resourceReference(id = R.string.tangempay_sync_needed_body),
|
||||||
buttonsState = ButtonsState.PrimaryButtonConfig(
|
buttonsState = ButtonsState.PrimaryButtonConfig(
|
||||||
text = buttonText,
|
text = buttonText,
|
||||||
iconResId = R.drawable.ic_tangem_24,
|
iconResId = R.drawable.ic_tangem_24,
|
||||||
|
|
|
||||||
|
|
@ -309,8 +309,8 @@ internal sealed class WalletNotificationUM(val messageUM: TangemMessageUM, val t
|
||||||
) : WalletNotificationUM(
|
) : WalletNotificationUM(
|
||||||
messageUM = TangemMessageUM(
|
messageUM = TangemMessageUM(
|
||||||
id = "TangemPayRefreshNeeded",
|
id = "TangemPayRefreshNeeded",
|
||||||
title = resourceReference(id = R.string.tangempay_payment_account_sync_needed),
|
title = resourceReference(id = R.string.tangempay_sync_needed_title),
|
||||||
subtitle = resourceReference(id = R.string.tangempay_use_tangem_device_to_restore_payment_account),
|
subtitle = resourceReference(id = R.string.tangempay_sync_needed_body),
|
||||||
buttonsUM = persistentListOf(
|
buttonsUM = persistentListOf(
|
||||||
TangemMessageButtonUM(
|
TangemMessageButtonUM(
|
||||||
text = buttonText,
|
text = buttonText,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue