aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/send.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/send.js')
-rw-r--r--ui/app/send.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/ui/app/send.js b/ui/app/send.js
index c77bc49f9..a9b8bb5cc 100644
--- a/ui/app/send.js
+++ b/ui/app/send.js
@@ -11,6 +11,7 @@ const isHex = require('./util').isHex
const EthBalance = require('./components/eth-balance')
const EnsInput = require('./components/ens-input')
const ethUtil = require('ethereumjs-util')
+const NewTooltip = require('./components/new-tooltip.js')
const { getSelectedIdentity } = require('./selectors')
const ARAGON = '960b236A07cf122663c4303350609A66A7B288C0'
@@ -56,6 +57,7 @@ function SendTransactionScreen () {
txData: null,
memo: '',
},
+ tooltipShown: false,
}
}
@@ -216,10 +218,16 @@ SendTransactionScreen.prototype.render = function () {
placeholder: '0',
}, []),
- h('div.send-screen-gas-input-customize', {}, [
+ h('div.send-screen-gas-input-customize', {
+ onClick: this.toggleTooltip.bind(this),
+ }, [
'Customize'
]),
+ h(NewTooltip, {
+ show: this.state.tooltipShown,
+ }),
+
]),
h('div.send-screen-input-wrapper', {}, [
@@ -511,6 +519,10 @@ SendTransactionScreen.prototype.renderSendToken = function () {
)
}
+SendTransactionScreen.prototype.toggleTooltip = function () {
+ this.setState({ tooltipShown: !this.state.tooltipShown })
+}
+
SendTransactionScreen.prototype.navigateToAccounts = function (event) {
event.stopPropagation()
this.props.dispatch(actions.showAccountsPage())