diff options
author | Kevin Serrano <kevgagser@gmail.com> | 2017-01-05 06:30:14 +0800 |
---|---|---|
committer | Kevin Serrano <kevgagser@gmail.com> | 2017-01-05 06:30:14 +0800 |
commit | a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c (patch) | |
tree | b858d07658d3f999e6e3396c9fa9bd9ef77dad3b /ui/app/app.js | |
parent | c22da8450cf5014fb2bf3c96e0df88c70aa39465 (diff) | |
download | tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.tar tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.tar.gz tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.tar.bz2 tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.tar.lz tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.tar.xz tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.tar.zst tangerine-wallet-browser-a8a37e4d40ac543025f7f7d111a59dc17c6f3a8c.zip |
Make network somewhat more modular, add new network indicator.
Diffstat (limited to 'ui/app/app.js')
-rw-r--r-- | ui/app/app.js | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index 6da0c3b1d..bd235998b 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -141,15 +141,21 @@ App.prototype.renderAppBar = function () { src: '/images/icon-128.png', }), - h(NetworkIndicator, { - network: this.props.network, - provider: this.props.provider, - onClick: (event) => { - event.preventDefault() - event.stopPropagation() - this.setState({ isNetworkMenuOpen: !isNetworkMenuOpen }) - }, - }), + h('#network-spacer.flex-center', { + style: { + marginRight: '-72px', + } + }, [ + h(NetworkIndicator, { + network: this.props.network, + provider: this.props.provider, + onClick: (event) => { + event.preventDefault() + event.stopPropagation() + this.setState({ isNetworkMenuOpen: !isNetworkMenuOpen }) + }, + }), + ]), ]), // metamask name |