aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/app.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-01-30 10:22:52 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-01-30 10:22:52 +0800
commitecc39c5a7abd8c8794d5565c1bc7d213d3514d61 (patch)
tree746f0a2bada5d8cd6636789d3c498c1ef13901fb /ui/app/app.js
parentd905b86ba775aad888d1dfd22257958fd9415909 (diff)
parentb05d21b1ba308bdb5b758d53dd79593a7a2bf26e (diff)
downloadtangerine-wallet-browser-ecc39c5a7abd8c8794d5565c1bc7d213d3514d61.tar
tangerine-wallet-browser-ecc39c5a7abd8c8794d5565c1bc7d213d3514d61.tar.gz
tangerine-wallet-browser-ecc39c5a7abd8c8794d5565c1bc7d213d3514d61.tar.bz2
tangerine-wallet-browser-ecc39c5a7abd8c8794d5565c1bc7d213d3514d61.tar.lz
tangerine-wallet-browser-ecc39c5a7abd8c8794d5565c1bc7d213d3514d61.tar.xz
tangerine-wallet-browser-ecc39c5a7abd8c8794d5565c1bc7d213d3514d61.tar.zst
tangerine-wallet-browser-ecc39c5a7abd8c8794d5565c1bc7d213d3514d61.zip
Merge branch 'uat' of https://github.com/MetaMask/metamask-extension into cb-254
Diffstat (limited to 'ui/app/app.js')
-rw-r--r--ui/app/app.js29
1 files changed, 14 insertions, 15 deletions
diff --git a/ui/app/app.js b/ui/app/app.js
index 07be459fc..22dc8c343 100644
--- a/ui/app/app.js
+++ b/ui/app/app.js
@@ -5,6 +5,8 @@ const { Switch, Redirect, withRouter } = require('react-router-dom')
const { compose } = require('recompose')
const h = require('react-hyperscript')
const actions = require('./actions')
+const classnames = require('classnames')
+
// mascara
const MascaraCreatePassword = require('../../mascara/src/app/first-time/create-password-screen').default
const MascaraBuyEtherScreen = require('../../mascara/src/app/first-time/buy-ether-screen').default
@@ -234,22 +236,22 @@ class App extends Component {
showNetworkDropdown,
hideNetworkDropdown,
currentView,
- isMascara,
- isOnboarding,
- history,
} = this.props
if (window.METAMASK_UI_TYPE === 'notification') {
return null
}
+ const props = this.props
+ const {isMascara, isOnboarding} = props
+
// Do not render header if user is in mascara onboarding
if (isMascara && isOnboarding) {
return null
}
// Do not render header if user is in mascara buy ether
- if (isMascara && currentView.name === 'buyEth') {
+ if (isMascara && props.currentView.name === 'buyEth') {
return null
}
@@ -260,7 +262,9 @@ class App extends Component {
}, [
h('.app-header.flex-row.flex-space-between', {
- style: {},
+ className: classnames({
+ 'app-header--initialized': !isOnboarding,
+ }),
}, [
h('div.app-header-contents', {}, [
h('div.left-menu-wrapper', {
@@ -268,19 +272,13 @@ class App extends Component {
}, [
// mini logo
h('img.metafox-icon', {
- height: 29,
- width: 29,
- src: '/images/icon-128.png',
+ height: 42,
+ width: 42,
+ src: '/images/metamask-fox.svg',
}),
// metamask name
- h('h1', {
- style: {
- position: 'relative',
- paddingLeft: '9px',
- color: '#5B5D67',
- },
- }, 'MetaMask'),
+ h('h1', 'MetaMask'),
]),
@@ -313,6 +311,7 @@ class App extends Component {
]),
]),
]),
+
])
)
}