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

Move terms of use strings into localized messages (#8736)

This commit is contained in:
Whymarrh Whitby 2020-06-04 12:28:21 -02:30 committed by GitHub
parent 591d84d2bb
commit 731efcb36d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 20 deletions

View File

@ -1,4 +1,8 @@
{
"acceptTermsOfUse": {
"message": "I have read and agree to the $1",
"description": "$1 is the `terms` message"
},
"eth_accounts": {
"message": "View the addresses of your permitted accounts (required)",
"description": "The description for the `eth_accounts` permission"

View File

@ -268,8 +268,10 @@ export default class ImportWithSeedPhrase extends PureComponent {
{termsChecked ? <i className="fa fa-check fa-2x" /> : null}
</div>
<span id="ftf-chk1-label" className="first-time-flow__checkbox-label">
I have read and agree to the&nbsp;
{t('acceptTermsOfUse', [(
<a
onClick={(e) => e.stopPropagation()}
key="first-time-flow__link-text"
href="https://metamask.io/terms.html"
target="_blank"
rel="noopener noreferrer"
@ -278,6 +280,7 @@ export default class ImportWithSeedPhrase extends PureComponent {
{ t('terms') }
</span>
</a>
)])}
</span>
</div>
<Button

View File

@ -204,8 +204,10 @@ export default class NewAccount extends PureComponent {
{termsChecked ? <i className="fa fa-check fa-2x" /> : null}
</div>
<span id="ftf-chk1-label" className="first-time-flow__checkbox-label">
I have read and agree to the&nbsp;
{t('acceptTermsOfUse', [(
<a
onClick={(e) => e.stopPropagation()}
key="first-time-flow__link-text"
href="https://metamask.io/terms.html"
target="_blank"
rel="noopener noreferrer"
@ -214,6 +216,7 @@ export default class NewAccount extends PureComponent {
{ t('terms') }
</span>
</a>
)])}
</span>
</div>
<Button