Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: updated reset wallet content for social account
  • Loading branch information
lionellbriones committed Jul 21, 2025
commit 849afc8cd1a4818947bb5113314abdc2bca94504
22 changes: 20 additions & 2 deletions app/_locales/en/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 20 additions & 2 deletions app/_locales/en_GB/messages.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions ui/helpers/constants/zendesk-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ const ZENDESK_URLS = {
'https://support.metamask.io/nfts/nft-tokens-in-your-metamask-wallet/',
PASSWORD_AND_SRP_ARTICLE:
'https://support.metamask.io/getting-started/user-guide-secret-recovery-phrase-password-and-private-keys/',
RESET_ADD_MISSING_ACCOUNT:
'https://support.metamask.io/configure/accounts/how-to-add-missing-accounts-after-restoring-with-secret-recovery-phrase/',
RESET_DISPLAY_TOKENS:
'https://support.metamask.io/manage-crypto/tokens/how-to-display-tokens-in-metamask/',
RESET_IMPORT_AN_ACCOUNT:
'https://support.metamask.io/start/how-to-import-an-account/',
SECRET_RECOVERY_PHRASE:
'https://support.metamask.io/privacy-and-security/what-is-a-secret-recovery-phrase-and-how-to-keep-your-crypto-wallet-secure/',
NON_CUSTODIAL_WALLET:
Expand Down
107 changes: 72 additions & 35 deletions ui/pages/keychains/restore-vault.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class RestoreVaultPage extends Component {

render() {
const { t } = this.context;
const { isLoading } = this.props;
const { isLoading, isSocialLoginFlow } = this.props;

return (
<Box className="first-view-main-wrapper">
Expand All @@ -89,44 +89,81 @@ class RestoreVaultPage extends Component {
{t('resetWallet')}
</Text>
<Text color={TextColor.textDefault}>
{t('resetWalletSubHeader')}
{isSocialLoginFlow
? t('resetWalletSubHeaderSocial')
: t('resetWalletSubHeader')}
</Text>
<Text color={TextColor.textDefault} marginTop={4} marginBottom={4}>
{t('resetWalletUsingSRP', [
<Button
type="link"
target="_blank"
rel="noopener noreferrer"
href={ZENDESK_URLS.ADD_MISSING_ACCOUNTS}
key="import-account-secretphase"
className="import-account__link"
>
{t('reAddAccounts')}
</Button>,
<Button
type="link"
target="_blank"
rel="noopener noreferrer"
href={ZENDESK_URLS.IMPORT_ACCOUNTS}
key="import-account-reimport-accounts"
className="import-account__link"
>
{t('reAdded')}
</Button>,
<Button
type="link"
target="_blank"
rel="noopener noreferrer"
href={ZENDESK_URLS.ADD_CUSTOM_TOKENS}
key="import-account-readd-tokens"
className="import-account__link"
>
{t('reAdded')}
</Button>,
])}
{isSocialLoginFlow
? t('resetWalletUsingSRPSocial', [
<Button
type="link"
target="_blank"
rel="noopener noreferrer"
href={ZENDESK_URLS.RESET_IMPORT_AN_ACCOUNT}
key="import-an-account"
className="import-account__link"
>
{t('resetWalletUsingSRPSocialAccounts')}
</Button>,
<Button
type="link"
target="_blank"
rel="noopener noreferrer"
href={ZENDESK_URLS.RESET_ADD_MISSING_ACCOUNT}
key="add-missing-account"
className="import-account__link"
>
{t('resetWalletUsingSRPSocialCustomAccounts')}
</Button>,
<Button
type="link"
target="_blank"
rel="noopener noreferrer"
href={ZENDESK_URLS.RESET_DISPLAY_TOKENS}
key="display-tokens"
className="import-account__link"
>
{t('resetWalletUsingSRPSocialCustomTokens')}
</Button>,
])
: t('resetWalletUsingSRP', [
<Button
type="link"
target="_blank"
rel="noopener noreferrer"
href={ZENDESK_URLS.ADD_MISSING_ACCOUNTS}
key="import-account-secretphase"
className="import-account__link"
>
{t('reAddAccounts')}
</Button>,
<Button
type="link"
target="_blank"
rel="noopener noreferrer"
href={ZENDESK_URLS.IMPORT_ACCOUNTS}
key="import-account-reimport-accounts"
className="import-account__link"
>
{t('reAdded')}
</Button>,
<Button
type="link"
target="_blank"
rel="noopener noreferrer"
href={ZENDESK_URLS.ADD_CUSTOM_TOKENS}
key="import-account-readd-tokens"
className="import-account__link"
>
{t('reAdded')}
</Button>,
])}
</Text>
<Text color={TextColor.textDefault} margin={0} marginBottom={4}>
{t('resetWalletWarning')}
{isSocialLoginFlow
? t('resetWalletWarningSocial')
: t('resetWalletWarning')}
</Text>
<CreateNewVault
disabled={isLoading}
Expand Down
Loading