1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-23 02:10:12 +01:00

Add tooltip to menu icon in tx-view

This commit is contained in:
Whymarrh Whitby 2018-07-12 10:51:42 -02:30
parent 0d4dbbec2a
commit 7581a4906f
2 changed files with 19 additions and 9 deletions

View File

@ -515,6 +515,9 @@
"mainnet": {
"message": "Main Ethereum Network"
},
"menu": {
"message": "Menu"
},
"message": {
"message": "Message"
},

View File

@ -11,6 +11,7 @@ const { SEND_ROUTE } = require('../routes')
const { checksumAddress: toChecksumAddress } = require('../util')
const BalanceComponent = require('./balance-component')
const Tooltip = require('./tooltip')
const TxList = require('./tx-list')
const SelectedAccount = require('./selected-account')
@ -103,7 +104,8 @@ TxView.prototype.renderButtons = function () {
}
TxView.prototype.render = function () {
const { isMascara } = this.props
const { hideSidebar, isMascara, showSidebar, sidebarOpen } = this.props
const { t } = this.context
return h('div.tx-view.flex-column', {
style: {},
@ -120,14 +122,19 @@ TxView.prototype.render = function () {
},
}, [
h('div.fa.fa-bars', {
style: {
fontSize: '1.3em',
cursor: 'pointer',
padding: '10px',
},
onClick: () => this.props.sidebarOpen ? this.props.hideSidebar() : this.props.showSidebar(),
}),
h(Tooltip, {
title: t('menu'),
position: 'bottom',
}, [
h('div.fa.fa-bars', {
style: {
fontSize: '1.3em',
cursor: 'pointer',
padding: '10px',
},
onClick: () => sidebarOpen ? hideSidebar() : showSidebar(),
}),
]),
h(SelectedAccount),