aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/input-number.js
diff options
context:
space:
mode:
authorErik Marks <25517051+rekmarks@users.noreply.github.com>2018-06-13 04:39:21 +0800
committerGitHub <noreply@github.com>2018-06-13 04:39:21 +0800
commitbb201d7c4aec5c8bb72615aaf2880a806a2bd138 (patch)
treefb39d41db91c831202dc0b057231b77ed1308210 /ui/app/components/input-number.js
parent6ba70a039af5139933747a1ffae070fe246f3501 (diff)
parent0740dd6a5b89defd5f5ba27fa38c7004243f0ce2 (diff)
downloadtangerine-wallet-browser-bb201d7c4aec5c8bb72615aaf2880a806a2bd138.tar.gz
tangerine-wallet-browser-bb201d7c4aec5c8bb72615aaf2880a806a2bd138.tar.zst
tangerine-wallet-browser-bb201d7c4aec5c8bb72615aaf2880a806a2bd138.zip
Merge branch 'develop' into stop-reload-on-network-change
Diffstat (limited to 'ui/app/components/input-number.js')
-rw-r--r--ui/app/components/input-number.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/components/input-number.js b/ui/app/components/input-number.js
index 5600e35ee..de5fcca54 100644
--- a/ui/app/components/input-number.js
+++ b/ui/app/components/input-number.js
@@ -1,7 +1,6 @@
const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
-const CurrencyInput = require('./currency-input')
const {
addCurrencies,
conversionGTE,
@@ -51,14 +50,15 @@ InputNumber.prototype.render = function () {
const { unitLabel, step = 1, placeholder, value = 0 } = this.props
return h('div.customize-gas-input-wrapper', {}, [
- h(CurrencyInput, {
+ h('input', {
className: 'customize-gas-input',
value,
placeholder,
type: 'number',
- onInputChange: newValue => {
- this.setValue(newValue)
+ onChange: e => {
+ this.setValue(e.target.value)
},
+ min: 0,
}),
h('span.gas-tooltip-input-detail', {}, [unitLabel]),
h('div.gas-tooltip-input-arrows', {}, [