diff options
author | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-14 04:16:22 +0800 |
---|---|---|
committer | sdtsui <szehungdanieltsui@gmail.com> | 2017-08-14 04:16:22 +0800 |
commit | c60ea60ec9c83b199a1502315015529a0d5dcdc1 (patch) | |
tree | 42509ee2164e7959ce4e540958305313abcf91a3 /ui/app/app.js | |
parent | 4cd33453dc14ae9e6a797c16cccb52598904941a (diff) | |
download | tangerine-wallet-browser-c60ea60ec9c83b199a1502315015529a0d5dcdc1.tar tangerine-wallet-browser-c60ea60ec9c83b199a1502315015529a0d5dcdc1.tar.gz tangerine-wallet-browser-c60ea60ec9c83b199a1502315015529a0d5dcdc1.tar.bz2 tangerine-wallet-browser-c60ea60ec9c83b199a1502315015529a0d5dcdc1.tar.lz tangerine-wallet-browser-c60ea60ec9c83b199a1502315015529a0d5dcdc1.tar.xz tangerine-wallet-browser-c60ea60ec9c83b199a1502315015529a0d5dcdc1.tar.zst tangerine-wallet-browser-c60ea60ec9c83b199a1502315015529a0d5dcdc1.zip |
Remove deprecated feature: main app settings dropdown
Diffstat (limited to 'ui/app/app.js')
-rw-r--r-- | ui/app/app.js | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 8ca60fee1..99eabec51 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -37,7 +37,6 @@ const RevealSeedConfirmation = require('./keychains/hd/recover-seed/confirmation const ReactCSSTransitionGroup = require('react-addons-css-transition-group') const AccountDropdowns = require('./components/account-dropdowns').AccountDropdowns const NetworkDropdown = require('./components/dropdowns/network-dropdown') -console.log('imported:', NetworkDropdown) // Global Modals const BuyModal = require('./components/modals/index').BuyModal @@ -124,8 +123,6 @@ App.prototype.render = function () { provider: this.props.provider, frequentRpcList: this.props.frequentRpcList, }, []), - // this.renderNetworkDropdown(), - // this.renderDropdown(), h(Loading, { isLoading: isLoading || isLoadingNetwork, @@ -402,51 +399,6 @@ App.prototype.renderNetworkDropdown = function () { ]) } - -// TODO: Remove if will be dead code in NewUI -App.prototype.renderDropdown = function () { - const state = this.state || {} - const isOpen = state.isMainMenuOpen - - return h(Dropdown, { - useCssTransition: true, - isOpen: isOpen, - zIndex: 11, - onClickOutside: (event) => { - const classList = event.target.classList - const parentClassList = event.target.parentElement.classList - - const isToggleElement = classList.contains('sandwich-expando') || - parentClassList.contains('sandwich-expando') - - if (isOpen && !isToggleElement) { - this.setState({ isMainMenuOpen: false }) - } - }, - style: { - position: 'absolute', - right: '2px', - top: '38px', - }, - innerStyle: {}, - }, [ - h(DropdownMenuItem, { - closeMenu: () => this.setState({ isMainMenuOpen: !isOpen }), - onClick: () => { this.props.dispatch(actions.showConfigPage()) }, - }, 'Settings'), - - h(DropdownMenuItem, { - closeMenu: () => this.setState({ isMainMenuOpen: !isOpen }), - onClick: () => { this.props.dispatch(actions.lockMetamask()) }, - }, 'Lock'), - - h(DropdownMenuItem, { - closeMenu: () => this.setState({ isMainMenuOpen: !isOpen }), - onClick: () => { this.props.dispatch(actions.showInfoPage()) }, - }, 'Info/Help'), - ]) -} - App.prototype.renderBackButton = function (style, justArrow = false) { var props = this.props return ( |