From 31b2b17c381ef54053a0ba466f939886b51ff7a3 Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Tue, 26 Feb 2019 12:20:00 -0330 Subject: [PATCH] Replace unique image screen with updated fishing warning screen. --- app/_locales/en/messages.json | 9 ++++++++ app/images/sleuth.svg | 1 + .../create-password.component.js | 3 +-- .../unique-image/unique-image.component.js | 21 +++++++------------ .../first-time-flow-switch.component.js | 4 ++-- .../first-time-flow.component.js | 3 ++- .../welcome/welcome.component.js | 4 ++-- 7 files changed, 25 insertions(+), 20 deletions(-) create mode 100644 app/images/sleuth.svg diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index d76929afbfae..dd2d51ac68e4 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -872,6 +872,15 @@ "newToMetaMask": { "message": "New to MetaMask?" }, + "protectYourKeys": { + "message": "Protect Your Keys!" + }, + "protectYourKeysMessage1": { + "message": "Be careful with your seed phrase — there have been reports of websites that attempt to imitate MetaMask. MetaMask will never spontaneously ask for your seed phrase!" + }, + "protectYourKeysMessage2": { + "message": "Keep your phrase safe. If you see something phishy, or you’re uncertain about a website, email support@metamask.io." + }, "rpcURL": { "message": "New RPC URL" }, diff --git a/app/images/sleuth.svg b/app/images/sleuth.svg new file mode 100644 index 000000000000..f4ac8c787c51 --- /dev/null +++ b/app/images/sleuth.svg @@ -0,0 +1 @@ + diff --git a/ui/app/components/pages/first-time-flow/create-password/create-password.component.js b/ui/app/components/pages/first-time-flow/create-password/create-password.component.js index 1c8509d1bebf..7cca82ca60c9 100644 --- a/ui/app/components/pages/first-time-flow/create-password/create-password.component.js +++ b/ui/app/components/pages/first-time-flow/create-password/create-password.component.js @@ -8,7 +8,6 @@ import { INITIALIZE_CREATE_PASSWORD_ROUTE, INITIALIZE_IMPORT_WITH_SEED_PHRASE_ROUTE, INITIALIZE_UNIQUE_IMAGE_ROUTE, - INITIALIZE_NOTICE_ROUTE, } from '../../../../routes' export default class CreatePassword extends PureComponent { @@ -24,7 +23,7 @@ export default class CreatePassword extends PureComponent { const { isInitialized, history } = this.props if (isInitialized) { - history.push(INITIALIZE_NOTICE_ROUTE) + history.push(INITIALIZE_UNIQUE_IMAGE_ROUTE) } } diff --git a/ui/app/components/pages/first-time-flow/create-password/unique-image/unique-image.component.js b/ui/app/components/pages/first-time-flow/create-password/unique-image/unique-image.component.js index 0badacdf751e..72ce873eb052 100644 --- a/ui/app/components/pages/first-time-flow/create-password/unique-image/unique-image.component.js +++ b/ui/app/components/pages/first-time-flow/create-password/unique-image/unique-image.component.js @@ -1,6 +1,5 @@ import React, { PureComponent } from 'react' import PropTypes from 'prop-types' -import Identicon from '../../../../identicon' import Button from '../../../../button' import { INITIALIZE_SEED_PHRASE_ROUTE, INITIALIZE_END_OF_FLOW_ROUTE } from '../../../../../routes' @@ -10,33 +9,29 @@ export default class UniqueImageScreen extends PureComponent { } static propTypes = { - address: PropTypes.string, history: PropTypes.object, isImportedKeyring: PropTypes.bool, } render () { const { t } = this.context - const { address, history, isImportedKeyring } = this.props + const { history, isImportedKeyring } = this.props return (
-
- { t('yourUniqueAccountImage') } + { t('protectYourKeys') }
- { t('yourUniqueAccountImageDescription1') } + { t('protectYourKeysMessage1') }
- { t('yourUniqueAccountImageDescription2') } -
-
- { t('yourUniqueAccountImageDescription3') } + { t('protectYourKeysMessage2') }