aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorWhymarrh Whitby <whymarrh.whitby@gmail.com>2018-07-13 02:13:53 +0800
committerGitHub <noreply@github.com>2018-07-13 02:13:53 +0800
commit55232d80d84dd85d276e906759bf1d8c0ad2399d (patch)
treec3b0ab4c1a2dd6be500c552a2dda07300c052839 /ui
parent0d4dbbec2abfa8c8015063d6e4a5ff0d34abe7b9 (diff)
parentd9f98a704e33e1c626196bb490be66deba0dda69 (diff)
downloadtangerine-wallet-browser-55232d80d84dd85d276e906759bf1d8c0ad2399d.tar
tangerine-wallet-browser-55232d80d84dd85d276e906759bf1d8c0ad2399d.tar.gz
tangerine-wallet-browser-55232d80d84dd85d276e906759bf1d8c0ad2399d.tar.bz2
tangerine-wallet-browser-55232d80d84dd85d276e906759bf1d8c0ad2399d.tar.lz
tangerine-wallet-browser-55232d80d84dd85d276e906759bf1d8c0ad2399d.tar.xz
tangerine-wallet-browser-55232d80d84dd85d276e906759bf1d8c0ad2399d.tar.zst
tangerine-wallet-browser-55232d80d84dd85d276e906759bf1d8c0ad2399d.zip
Merge pull request #4779 from whymarrh/tx-view-tooltips
Add Tooltips to Balance View in Extension
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/tx-view.js37
1 files changed, 24 insertions, 13 deletions
diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js
index 014497fcd..654090da6 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,21 +122,30 @@ 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),
- !isMascara && h('div.open-in-browser', {
- onClick: () => global.platform.openExtensionInBrowser(),
- }, [h('img', { src: 'images/popout.svg' })]),
-
+ !isMascara && h(Tooltip, {
+ title: t('openInTab'),
+ position: 'bottom',
+ }, [
+ h('div.open-in-browser', {
+ onClick: () => global.platform.openExtensionInBrowser(),
+ }, [h('img', { src: 'images/popout.svg' })]),
+ ]),
]),
this.renderHeroBalance(),