Skip to content

Commit

Permalink
MOB-2069 - Copy update for ULW removal (#580)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleg-Pecheneg authored Jun 17, 2024
1 parent fdb6099 commit 5f1e738
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ extension String {
static let disconnectWalletAlertTitle = "DISCONNECT_WALLET_ALERT_TITLE"
static let removeWalletAlertSubtitleRecoveryPhrase = "REMOVE_WALLET_ALERT_SUBTITLE_RECOVERY_PHRASE"
static let removeWalletAlertSubtitlePrivateKey = "REMOVE_WALLET_ALERT_SUBTITLE_PRIVATE_KEY"
static let removeWalletAlertSubtitleMPC = "REMOVE_WALLET_ALERT_SUBTITLE_MPC"
static let copyAddress = "COPY_ADDRESS"
static let ethAddress = "ETH_ADDRESS"
static let whatIsExternalWallet = "WHAT_IS_EXTERNAL_WALLET"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ extension PullUpViewService: PullUpViewServiceProtocol {
if !walletInfo.isConnected {
selectionViewHeight = 420
title = String.Constants.removeWalletAlertTitle.localized(walletInfo.walletSourceName.lowercased(), address)
subtitle = walletInfo.isWithPrivateKey ? String.Constants.removeWalletAlertSubtitlePrivateKey.localized() : String.Constants.removeWalletAlertSubtitleRecoveryPhrase.localized()
if walletInfo.source == .mpc {
subtitle = String.Constants.removeWalletAlertSubtitleMPC.localized()
} else {
subtitle = walletInfo.isWithPrivateKey ? String.Constants.removeWalletAlertSubtitlePrivateKey.localized() : String.Constants.removeWalletAlertSubtitleRecoveryPhrase.localized()
}
buttonTitle = String.Constants.removeWallet.localized()
} else {
selectionViewHeight = 368
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@
"DISCONNECT_WALLET_ALERT_TITLE" = "Are you sure you want to disconnect this wallet: %@?";
"REMOVE_WALLET_ALERT_SUBTITLE_RECOVERY_PHRASE" = "This action is irreversible. Make sure you have saved your recovery phrase to restore access to this wallet.";
"REMOVE_WALLET_ALERT_SUBTITLE_PRIVATE_KEY" = "This action is irreversible. Make sure you have saved your private key to restore access to this wallet.";
"REMOVE_WALLET_ALERT_SUBTITLE_MPC" = "This action is irreversible. Make sure you have saved the password and you know the email address to restore access to this wallet";
"COPY_ADDRESS" = "Copy address";
"ETH_ADDRESS" = "ETH address";
"ZIL_ADDRESS" = "ZIL address";
Expand Down

0 comments on commit 5f1e738

Please sign in to comment.