aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-07-12 21:21:42 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-07-12 23:02:45 +0800
commit7581a4906f25c22ee773bd8537f277b28600d6cf (patch)
treeee29d33ee665c15ba736503917796ea014529643 /ui
parent0d4dbbec2abfa8c8015063d6e4a5ff0d34abe7b9 (diff)
downloadtangerine-wallet-browser-7581a4906f25c22ee773bd8537f277b28600d6cf.tar
tangerine-wallet-browser-7581a4906f25c22ee773bd8537f277b28600d6cf.tar.gz
tangerine-wallet-browser-7581a4906f25c22ee773bd8537f277b28600d6cf.tar.bz2
tangerine-wallet-browser-7581a4906f25c22ee773bd8537f277b28600d6cf.tar.lz
tangerine-wallet-browser-7581a4906f25c22ee773bd8537f277b28600d6cf.tar.xz
tangerine-wallet-browser-7581a4906f25c22ee773bd8537f277b28600d6cf.tar.zst
tangerine-wallet-browser-7581a4906f25c22ee773bd8537f277b28600d6cf.zip
Add tooltip to menu icon in tx-view
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/tx-view.js25
1 files changed, 16 insertions, 9 deletions
diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js
index 014497fcd..e848297e7 100644
--- a/ui/app/components/tx-view.js
+++ b/ui/app/components/tx-view.js
@@ -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),