1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Adding copy to SRP import screen to warn users (#12400)

* Added copy to SRP import screen to warn users that there current wallet will be replaced

* Fixing test-lint error

* Remove padding and edit warning message
This commit is contained in:
VSaric 2021-10-21 10:50:17 +02:00 committed by GitHub
parent f733857388
commit 5fea5fac8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View File

@ -1969,6 +1969,9 @@
"secretPhrase": { "secretPhrase": {
"message": "Only the first account on this wallet will auto load. After completing this process, to add additional accounts, click the drop down menu, then select Create Account." "message": "Only the first account on this wallet will auto load. After completing this process, to add additional accounts, click the drop down menu, then select Create Account."
}, },
"secretPhraseWarning": {
"message": "If you restore using another Secret Recovery Phrase, your current wallet, accounts and assets will be removed from this app permanently. This action cannot be undone."
},
"secretRecoveryPhrase": { "secretRecoveryPhrase": {
"message": "Secret Recovery Phrase" "message": "Secret Recovery Phrase"
}, },

View File

@ -113,10 +113,18 @@
color: #1b344d; color: #1b344d;
} }
&__selector-typography {
line-height: 22px;
display: flex;
align-items: center;
color: #000;
margin-top: 18px;
}
&__input-wrapper { &__input-wrapper {
display: flex; display: flex;
flex-flow: column nowrap; flex-flow: column nowrap;
margin-top: 30px; margin-top: 18px;
} }
&__input { &__input {

View File

@ -163,6 +163,9 @@ class RestoreVaultPage extends Component {
<div className="import-account__selector-label"> <div className="import-account__selector-label">
{this.context.t('secretPhrase')} {this.context.t('secretPhrase')}
</div> </div>
<div className="import-account__selector-typography">
{this.context.t('secretPhraseWarning')}
</div>
<div className="import-account__input-wrapper"> <div className="import-account__input-wrapper">
<label className="import-account__input-label"> <label className="import-account__input-label">
{this.context.t('walletSeedRestore')} {this.context.t('walletSeedRestore')}