diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-12 21:21:42 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-07-12 23:02:45 +0800 |
commit | 7581a4906f25c22ee773bd8537f277b28600d6cf (patch) | |
tree | ee29d33ee665c15ba736503917796ea014529643 | |
parent | 0d4dbbec2abfa8c8015063d6e4a5ff0d34abe7b9 (diff) | |
download | tangerine-wallet-browser-7581a4906f25c22ee773bd8537f277b28600d6cf.tar.gz tangerine-wallet-browser-7581a4906f25c22ee773bd8537f277b28600d6cf.tar.zst tangerine-wallet-browser-7581a4906f25c22ee773bd8537f277b28600d6cf.zip |
Add tooltip to menu icon in tx-view
-rw-r--r-- | app/_locales/en/messages.json | 3 | ||||
-rw-r--r-- | ui/app/components/tx-view.js | 25 |
2 files changed, 19 insertions, 9 deletions
diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 897f16f04..4b03c6747 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -515,6 +515,9 @@ "mainnet": { "message": "Main Ethereum Network" }, + "menu": { + "message": "Menu" + }, "message": { "message": "Message" }, 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), |