From fd4fbdc0cd70e31764a497946f565757b204b616 Mon Sep 17 00:00:00 2001 From: Jacky Chan Date: Tue, 22 Aug 2017 05:59:44 -0700 Subject: Add NoticeScreen --- mascara/src/app/first-time/index.js | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'mascara/src/app/first-time/index.js') diff --git a/mascara/src/app/first-time/index.js b/mascara/src/app/first-time/index.js index 4bc03c09c..a81c4c11d 100644 --- a/mascara/src/app/first-time/index.js +++ b/mascara/src/app/first-time/index.js @@ -2,6 +2,7 @@ import React, {Component, PropTypes} from 'react' import {connect} from 'react-redux'; import CreatePasswordScreen from './create-password-screen' import UniqueImageScreen from './unique-image-screen' +import NoticeScreen from './notice-screen' class FirstTimeFlow extends Component { @@ -20,7 +21,7 @@ class FirstTimeFlow extends Component { static SCREEN_TYPE = { CREATE_PASSWORD: 'create_password', UNIQUE_IMAGE: 'unique_image', - TERM_OF_USE: 'term_of_use', + NOTICE: 'notice', BACK_UP_PHRASE: 'back_up_phrase', CONFIRM_BACK_UP_PHRASE: 'confirm_back_up_phrase', BUY_ETHER: 'buy_ether' @@ -41,14 +42,14 @@ class FirstTimeFlow extends Component { const {isInitialized, seedWords, noActiveNotices} = this.props; const {SCREEN_TYPE} = FirstTimeFlow - return SCREEN_TYPE.UNIQUE_IMAGE + // return SCREEN_TYPE.UNIQUE_IMAGE if (!isInitialized) { return SCREEN_TYPE.CREATE_PASSWORD } if (!noActiveNotices) { - return SCREEN_TYPE.TERM_OF_USE + return SCREEN_TYPE.NOTICE } if (seedWords) { @@ -69,7 +70,13 @@ class FirstTimeFlow extends Component { case SCREEN_TYPE.UNIQUE_IMAGE: return ( this.setScreenType(SCREEN_TYPE.TERM_OF_USE)} + next={() => this.setScreenType(SCREEN_TYPE.NOTICE)} + /> + ) + case SCREEN_TYPE.NOTICE: + return ( + this.setScreenType(SCREEN_TYPE.BACK_UP_PHRASE)} /> ) default: -- cgit v1.2.3