|
|
@ -198,46 +198,47 @@ App.prototype.renderAppBar = function () { |
|
|
|
h('.app-header.flex-row.flex-space-between', { |
|
|
|
h('.app-header.flex-row.flex-space-between', { |
|
|
|
style: {}, |
|
|
|
style: {}, |
|
|
|
}, [ |
|
|
|
}, [ |
|
|
|
|
|
|
|
h('div.app-header-contents', {}, [ |
|
|
|
h('div.left-menu-wrapper', { |
|
|
|
h('div.left-menu-wrapper', { |
|
|
|
style: {}, |
|
|
|
style: {}, |
|
|
|
}, [ |
|
|
|
}, [ |
|
|
|
// mini logo
|
|
|
|
// mini logo
|
|
|
|
h('img', { |
|
|
|
h('img', { |
|
|
|
height: 24, |
|
|
|
height: 24, |
|
|
|
width: 24, |
|
|
|
width: 24, |
|
|
|
src: '/images/icon-128.png', |
|
|
|
src: '/images/icon-128.png', |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
// metamask name
|
|
|
|
// metamask name
|
|
|
|
h('h1', { |
|
|
|
h('h1', { |
|
|
|
style: { |
|
|
|
style: { |
|
|
|
position: 'relative', |
|
|
|
position: 'relative', |
|
|
|
left: '9px', |
|
|
|
left: '9px', |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, 'MetaMask'), |
|
|
|
}, 'MetaMask'), |
|
|
|
|
|
|
|
|
|
|
|
]), |
|
|
|
]), |
|
|
|
|
|
|
|
|
|
|
|
h('div.network-component-wrapper', { |
|
|
|
h('div.network-component-wrapper', { |
|
|
|
style: {}, |
|
|
|
style: {}, |
|
|
|
}, [ |
|
|
|
}, [ |
|
|
|
// Network Indicator
|
|
|
|
// Network Indicator
|
|
|
|
h(NetworkIndicator, { |
|
|
|
h(NetworkIndicator, { |
|
|
|
network: this.props.network, |
|
|
|
network: this.props.network, |
|
|
|
provider: this.props.provider, |
|
|
|
provider: this.props.provider, |
|
|
|
onClick: (event) => { |
|
|
|
onClick: (event) => { |
|
|
|
event.preventDefault() |
|
|
|
event.preventDefault() |
|
|
|
event.stopPropagation() |
|
|
|
event.stopPropagation() |
|
|
|
if (this.props.networkDropdownOpen === false) { |
|
|
|
if (this.props.networkDropdownOpen === false) { |
|
|
|
this.props.showNetworkDropdown() |
|
|
|
this.props.showNetworkDropdown() |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.props.hideNetworkDropdown() |
|
|
|
this.props.hideNetworkDropdown() |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}), |
|
|
|
}), |
|
|
|
|
|
|
|
|
|
|
|
]), |
|
|
|
]), |
|
|
|
|
|
|
|
]) |
|
|
|
]), |
|
|
|
]), |
|
|
|
|
|
|
|
|
|
|
|
]) |
|
|
|
]) |
|
|
|