diff options
author | Csaba S <csaba.solya@gmail.com> | 2018-07-21 02:09:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-21 02:09:57 +0800 |
commit | c11dea9afc9f4215529abda11a0d5a7e4fdd10d4 (patch) | |
tree | 9a21c102490c3a9c751c606008d1e0c10b20cdc2 /ui/app/components/pages/create-account/index.js | |
parent | 682d59cfe0114dc987fe5e953e9db4dca5e2b5d7 (diff) | |
parent | cb045fd8feec88bd631329ab9b3285aeed0f2e97 (diff) | |
download | tangerine-wallet-browser-c11dea9afc9f4215529abda11a0d5a7e4fdd10d4.tar.gz tangerine-wallet-browser-c11dea9afc9f4215529abda11a0d5a7e4fdd10d4.tar.zst tangerine-wallet-browser-c11dea9afc9f4215529abda11a0d5a7e4fdd10d4.zip |
Merge branch 'develop' into transaction-notifications
Diffstat (limited to 'ui/app/components/pages/create-account/index.js')
-rw-r--r-- | ui/app/components/pages/create-account/index.js | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/ui/app/components/pages/create-account/index.js b/ui/app/components/pages/create-account/index.js index 5681e43a9..d3de1ea01 100644 --- a/ui/app/components/pages/create-account/index.js +++ b/ui/app/components/pages/create-account/index.js @@ -8,7 +8,12 @@ const { getCurrentViewContext } = require('../../../selectors') const classnames = require('classnames') const NewAccountCreateForm = require('./new-account') const NewAccountImportForm = require('./import-account') -const { NEW_ACCOUNT_ROUTE, IMPORT_ACCOUNT_ROUTE } = require('../../../routes') +const ConnectHardwareForm = require('./connect-hardware') +const { + NEW_ACCOUNT_ROUTE, + IMPORT_ACCOUNT_ROUTE, + CONNECT_HARDWARE_ROUTE, +} = require('../../../routes') class CreateAccountPage extends Component { renderTabs () { @@ -36,6 +41,19 @@ class CreateAccountPage extends Component { }, [ this.context.t('import'), ]), + h( + 'div.new-account__tabs__tab', + { + className: classnames('new-account__tabs__tab', { + 'new-account__tabs__selected': matchPath(location.pathname, { + path: CONNECT_HARDWARE_ROUTE, + exact: true, + }), + }), + onClick: () => history.push(CONNECT_HARDWARE_ROUTE), + }, + this.context.t('connect') + ), ]) } @@ -57,6 +75,11 @@ class CreateAccountPage extends Component { path: IMPORT_ACCOUNT_ROUTE, component: NewAccountImportForm, }), + h(Route, { + exact: true, + path: CONNECT_HARDWARE_ROUTE, + component: ConnectHardwareForm, + }), ]), ]), ]) |