aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/input-number.js
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2018-06-01 01:39:13 +0800
committerGitHub <noreply@github.com>2018-06-01 01:39:13 +0800
commit15f4ce352ddb88c43659ddd6fa29e53126d2a68c (patch)
treef96e1e8d130a045b88dd67af286b3e2a4ec5c9c6 /ui/app/components/input-number.js
parent6d8344d0d0af3734255a0e9e79d857d84b5fe2aa (diff)
parent3745c1ea4fd62f092c7e277a16b9204b0c0ddaea (diff)
downloadtangerine-wallet-browser-15f4ce352ddb88c43659ddd6fa29e53126d2a68c.tar
tangerine-wallet-browser-15f4ce352ddb88c43659ddd6fa29e53126d2a68c.tar.gz
tangerine-wallet-browser-15f4ce352ddb88c43659ddd6fa29e53126d2a68c.tar.bz2
tangerine-wallet-browser-15f4ce352ddb88c43659ddd6fa29e53126d2a68c.tar.lz
tangerine-wallet-browser-15f4ce352ddb88c43659ddd6fa29e53126d2a68c.tar.xz
tangerine-wallet-browser-15f4ce352ddb88c43659ddd6fa29e53126d2a68c.tar.zst
tangerine-wallet-browser-15f4ce352ddb88c43659ddd6fa29e53126d2a68c.zip
Merge pull request #4386 from MetaMask/i4077-replace-currency-input-with-numeric-input
Replace currency-input.js with NumericInput
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', {}, [