diff options
| author | Dan <danjm.com@gmail.com> | 2018-05-24 02:33:15 +0800 | 
|---|---|---|
| committer | Dan <danjm.com@gmail.com> | 2018-05-24 02:33:15 +0800 | 
| commit | 440905125d77d1d5d72d1aceac2940925a8ac38f (patch) | |
| tree | d5418384983f9de8092d2dfdd1ddddec2ffd555e /ui/app/app.js | |
| parent | 3dec7cb52443b24d6a24f75434ee41a54f4cfd0b (diff) | |
| parent | ed01c6c8264a860cdc4248991839954bdf22e2ef (diff) | |
| download | tangerine-wallet-browser-440905125d77d1d5d72d1aceac2940925a8ac38f.tar.gz tangerine-wallet-browser-440905125d77d1d5d72d1aceac2940925a8ac38f.tar.zst tangerine-wallet-browser-440905125d77d1d5d72d1aceac2940925a8ac38f.zip | |
Merge branch 'develop' into i3725-refactor-send-component-
Diffstat (limited to 'ui/app/app.js')
| -rw-r--r-- | ui/app/app.js | 16 | 
1 files changed, 5 insertions, 11 deletions
| diff --git a/ui/app/app.js b/ui/app/app.js index 0c0c6ec44..c4fddf1eb 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -1,7 +1,7 @@  const { Component } = require('react')  const PropTypes = require('prop-types')  const connect = require('react-redux').connect -const { Route, Switch, withRouter, matchPath } = require('react-router-dom') +const { Route, Switch, withRouter } = require('react-router-dom')  const { compose } = require('recompose')  const h = require('react-hyperscript')  const actions = require('./actions') @@ -26,6 +26,7 @@ const UnlockPage = require('./components/pages/unlock-page')  const RestoreVaultPage = require('./components/pages/keychains/restore-vault')  const RevealSeedConfirmation = require('./components/pages/keychains/reveal-seed')  const AddTokenPage = require('./components/pages/add-token') +const ConfirmAddTokenPage = require('./components/pages/confirm-add-token')  const CreateAccountPage = require('./components/pages/create-account')  const NoticeScreen = require('./components/pages/notice') @@ -47,6 +48,7 @@ const {    REVEAL_SEED_ROUTE,    RESTORE_VAULT_ROUTE,    ADD_TOKEN_ROUTE, +  CONFIRM_ADD_TOKEN_ROUTE,    NEW_ACCOUNT_ROUTE,    SEND_ROUTE,    CONFIRM_TRANSACTION_ROUTE, @@ -77,21 +79,13 @@ class App extends Component {          h(Authenticated, { path: CONFIRM_TRANSACTION_ROUTE, component: ConfirmTxScreen }),          h(Authenticated, { path: SEND_ROUTE, exact, component: SendTransactionScreen }),          h(Authenticated, { path: ADD_TOKEN_ROUTE, exact, component: AddTokenPage }), +        h(Authenticated, { path: CONFIRM_ADD_TOKEN_ROUTE, exact, component: ConfirmAddTokenPage }),          h(Authenticated, { path: NEW_ACCOUNT_ROUTE, component: CreateAccountPage }),          h(Authenticated, { path: DEFAULT_ROUTE, exact, component: Home }),        ])      )    } -  renderAppHeader () { -    const { location } = this.props -    const isInitializing = matchPath(location.pathname, { -      path: INITIALIZE_ROUTE, exact: false, -    }) - -    return isInitializing ? null : h(AppHeader) -  } -    render () {      const {        isLoading, @@ -128,7 +122,7 @@ class App extends Component {          // global modal          h(Modal, {}, []), -        this.renderAppHeader(), +        h(AppHeader),          // sidebar          this.renderSidebar(), | 
