From 731efcb36d0fde8c12b0ae2e9f28499636870cc3 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Thu, 4 Jun 2020 12:28:21 -0230 Subject: [PATCH] Move terms of use strings into localized messages (#8736) --- app/_locales/en/messages.json | 4 ++++ .../import-with-seed-phrase.component.js | 23 +++++++++++-------- .../new-account/new-account.component.js | 23 +++++++++++-------- 3 files changed, 30 insertions(+), 20 deletions(-) diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 6ec3bb0e2..f86498776 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -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" diff --git a/ui/app/pages/first-time-flow/create-password/import-with-seed-phrase/import-with-seed-phrase.component.js b/ui/app/pages/first-time-flow/create-password/import-with-seed-phrase/import-with-seed-phrase.component.js index b138d7e33..f62af2d1d 100644 --- a/ui/app/pages/first-time-flow/create-password/import-with-seed-phrase/import-with-seed-phrase.component.js +++ b/ui/app/pages/first-time-flow/create-password/import-with-seed-phrase/import-with-seed-phrase.component.js @@ -268,16 +268,19 @@ export default class ImportWithSeedPhrase extends PureComponent { {termsChecked ? : null} - I have read and agree to the  - - - { t('terms') } - - + {t('acceptTermsOfUse', [( + e.stopPropagation()} + key="first-time-flow__link-text" + href="https://metamask.io/terms.html" + target="_blank" + rel="noopener noreferrer" + > + + { t('terms') } + + + )])}