diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-01-18 05:47:30 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-01-18 05:47:30 +0800 |
commit | 77bd010543855fafe21ac37e282bc8137ef7a7d8 (patch) | |
tree | 37781e98c19b50d1868af2277a9d55f29c0efa55 /ui/app/app.js | |
parent | 1f2840a7beff0cde617f1caf7cb7070507c81f7d (diff) | |
download | tangerine-wallet-browser-77bd010543855fafe21ac37e282bc8137ef7a7d8.tar tangerine-wallet-browser-77bd010543855fafe21ac37e282bc8137ef7a7d8.tar.gz tangerine-wallet-browser-77bd010543855fafe21ac37e282bc8137ef7a7d8.tar.bz2 tangerine-wallet-browser-77bd010543855fafe21ac37e282bc8137ef7a7d8.tar.lz tangerine-wallet-browser-77bd010543855fafe21ac37e282bc8137ef7a7d8.tar.xz tangerine-wallet-browser-77bd010543855fafe21ac37e282bc8137ef7a7d8.tar.zst tangerine-wallet-browser-77bd010543855fafe21ac37e282bc8137ef7a7d8.zip |
Add "import account" menu item + template view
Diffstat (limited to 'ui/app/app.js')
-rw-r--r-- | ui/app/app.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 9efe95874..c6377a2cf 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -20,6 +20,7 @@ const NoticeScreen = require('./components/notice') const generateLostAccountsNotice = require('../lib/lost-accounts-notice') // other views const ConfigScreen = require('./config') +const Import = require('./import') const InfoScreen = require('./info') const LoadingIndicator = require('./components/loading') const SandwichExpando = require('sandwich-expando') @@ -305,6 +306,13 @@ App.prototype.renderDropdown = function () { }), h(DropMenuItem, { + label: 'Import Account', + closeMenu: () => this.setState({ isMainMenuOpen: !isOpen }), + action: () => this.props.dispatch(actions.showImportPage()), + icon: h('i.fa.fa-arrow-circle-o-up.fa-lg'), + }), + + h(DropMenuItem, { label: 'Lock', closeMenu: () => this.setState({ isMainMenuOpen: !isOpen }), action: () => this.props.dispatch(actions.lockMetamask()), @@ -411,6 +419,9 @@ App.prototype.renderPrimary = function () { case 'config': return h(ConfigScreen, {key: 'config'}) + case 'import-menu': + return h(Import, {key: 'import-menu'}) + case 'reveal-seed-conf': return h(RevealSeedConfirmation, {key: 'reveal-seed-conf'}) |