aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
authorsdtsui <szehungdanieltsui@gmail.com>2017-07-30 03:21:10 +0800
committersdtsui <szehungdanieltsui@gmail.com>2017-07-30 03:21:10 +0800
commit8c5be547228c9801ab616beb5054b888509463f9 (patch)
treee9796dde6bf525753611c4672ba7237865040f13 /ui/app/app.js
parent4d7295b05fd3b4189bb2e4c604e53b349d5618a0 (diff)
downloadtangerine-wallet-browser-8c5be547228c9801ab616beb5054b888509463f9.tar
tangerine-wallet-browser-8c5be547228c9801ab616beb5054b888509463f9.tar.gz
tangerine-wallet-browser-8c5be547228c9801ab616beb5054b888509463f9.tar.bz2
tangerine-wallet-browser-8c5be547228c9801ab616beb5054b888509463f9.tar.lz
tangerine-wallet-browser-8c5be547228c9801ab616beb5054b888509463f9.tar.xz
tangerine-wallet-browser-8c5be547228c9801ab616beb5054b888509463f9.tar.zst
tangerine-wallet-browser-8c5be547228c9801ab616beb5054b888509463f9.zip
Rearrange header components: closer to redesigned UI
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js49
1 files changed, 18 insertions, 31 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 8fad0f7d6..6537e2f56 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -82,7 +82,7 @@ App.prototype.render = function () {
// app bar
this.renderAppBar(),
this.renderNetworkDropdown(),
- this.renderDropdown(),
+ // this.renderDropdown(),
h(Loading, {
isLoading: isLoading || isLoadingNetwork,
@@ -120,7 +120,7 @@ App.prototype.renderAppBar = function () {
style: {
alignItems: 'center',
visibility: props.isUnlocked ? 'visible' : 'none',
- background: props.isUnlocked ? 'white' : 'none',
+ background: '#EFEFEF', // $gallery
height: '38px',
position: 'relative',
zIndex: 12,
@@ -134,7 +134,6 @@ App.prototype.renderAppBar = function () {
alignItems: 'center',
},
}, [
-
// mini logo
h('img', {
height: 24,
@@ -142,46 +141,34 @@ 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 })
+ // metamask name
+ h('h1', {
+ style: {
+ position: 'relative',
+ left: '9px',
},
- }),
- ]),
+ }, 'MetaMask'),
- // metamask name
- props.isUnlocked && h('h1', {
- style: {
- position: 'relative',
- left: '9px',
- },
- }, 'MetaMask'),
+ ]),
- props.isUnlocked && h('div', {
+ h('div', {
style: {
display: 'flex',
flexDirection: 'row',
alignItems: 'center',
},
}, [
-
- // hamburger
- props.isUnlocked && h(SandwichExpando, {
- width: 16,
- barHeight: 2,
- padding: 0,
- isOpen: state.isMainMenuOpen,
- color: 'rgb(247,146,30)',
+ // Network Indicator
+ h(NetworkIndicator, {
+ network: this.props.network,
+ provider: this.props.provider,
onClick: (event) => {
event.preventDefault()
event.stopPropagation()
- this.setState({ isMainMenuOpen: !state.isMainMenuOpen })
+ this.setState({ isNetworkMenuOpen: !isNetworkMenuOpen })
},
}),
+
]),
]),
])
@@ -213,8 +200,8 @@ App.prototype.renderNetworkDropdown = function () {
zIndex: 11,
style: {
position: 'absolute',
- left: '2px',
- top: '36px',
+ right: '2px',
+ top: '38px',
},
innerStyle: {
padding: '2px 16px 2px 0px',