Minor clean up.

feature/default_network_editable
Dan 7 years ago
parent 5facba89ca
commit c605c9897d
  1. 7
      ui/app/components/gas-tooltip.js
  2. 5
      ui/app/css/itcss/components/send.scss
  3. 17
      ui/app/send.js

@ -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
}),

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

@ -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,
{
gas: gasLimit,
gasPrice,
}
),
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'
]),

Loading…
Cancel
Save