1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Minor clean up.

This commit is contained in:
Dan 2017-08-29 16:09:56 -02:30
parent 5facba89ca
commit c605c9897d
3 changed files with 12 additions and 17 deletions

View File

@ -59,12 +59,7 @@ GasTooltip.prototype.render = function () {
const { position, title, children, className } = this.props
const { gasPrice, gasLimit } = this.state
return h('div', {
style: {
display: 'flex',
justifyContent: 'center',
}
}, [
return h('div.gas-tooltip', {}, [
h('div.gas-tooltip-close-area', {
onClick: this.onClose
}),

View File

@ -148,6 +148,11 @@
position: relative;
}
.gas-tooltip {
display: flex;
justify-content: center;
}
.gas-tooltip-label {
font-size: 16px;
color: $tundora;

View File

@ -66,14 +66,11 @@ function SendTransactionScreen () {
tooltipIsOpen: false,
}
this.back = this.back.bind(this)
this.back = this.back.bind(this)
this.closeTooltip = this.closeTooltip.bind(this)
this.onSubmit = this.onSubmit.bind(this)
this.onSubmit = this.onSubmit.bind(this)
this.recipientDidChange = this.recipientDidChange.bind(this)
this.setCurrentCurrency = this.setCurrentCurrency.bind(this)
this.setCurrentCurrency = this.setCurrentCurrency.bind(this)
this.toggleTooltip = this.toggleTooltip.bind(this)
}
@ -232,13 +229,11 @@ SendTransactionScreen.prototype.render = function () {
onClose: this.closeTooltip,
onFeeChange: ({gasLimit, gasPrice}) => {
this.setState({
newTx: Object.assign(
this.state.newTx,
{
newTx: {
...this.state.newTx,
gas: gasLimit,
gasPrice,
}
),
},
})
}
}),
@ -287,7 +282,7 @@ SendTransactionScreen.prototype.render = function () {
}
}),
h('div.send-screen-gas-input-customize', {
onClick: () => this.toggleTooltip.bind(this)(!this.state.tooltipIsOpen),
onClick: this.toggleTooltip,
}, [
'Customize'
]),