|
|
@ -1,7 +1,6 @@ |
|
|
|
const Component = require('react').Component |
|
|
|
const Component = require('react').Component |
|
|
|
const h = require('react-hyperscript') |
|
|
|
const h = require('react-hyperscript') |
|
|
|
const inherits = require('util').inherits |
|
|
|
const inherits = require('util').inherits |
|
|
|
const CurrencyInput = require('./currency-input') |
|
|
|
|
|
|
|
const { |
|
|
|
const { |
|
|
|
addCurrencies, |
|
|
|
addCurrencies, |
|
|
|
conversionGTE, |
|
|
|
conversionGTE, |
|
|
@ -51,14 +50,15 @@ InputNumber.prototype.render = function () { |
|
|
|
const { unitLabel, step = 1, placeholder, value = 0 } = this.props |
|
|
|
const { unitLabel, step = 1, placeholder, value = 0 } = this.props |
|
|
|
|
|
|
|
|
|
|
|
return h('div.customize-gas-input-wrapper', {}, [ |
|
|
|
return h('div.customize-gas-input-wrapper', {}, [ |
|
|
|
h(CurrencyInput, { |
|
|
|
h('input', { |
|
|
|
className: 'customize-gas-input', |
|
|
|
className: 'customize-gas-input', |
|
|
|
value, |
|
|
|
value, |
|
|
|
placeholder, |
|
|
|
placeholder, |
|
|
|
type: 'number', |
|
|
|
type: 'number', |
|
|
|
onInputChange: newValue => { |
|
|
|
onChange: e => { |
|
|
|
this.setValue(newValue) |
|
|
|
this.setValue(e.target.value) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
min: 0, |
|
|
|
}), |
|
|
|
}), |
|
|
|
h('span.gas-tooltip-input-detail', {}, [unitLabel]), |
|
|
|
h('span.gas-tooltip-input-detail', {}, [unitLabel]), |
|
|
|
h('div.gas-tooltip-input-arrows', {}, [ |
|
|
|
h('div.gas-tooltip-input-arrows', {}, [ |
|
|
|