diff options
author | Dan <danjm.com@gmail.com> | 2018-05-30 08:45:21 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-30 08:45:21 +0800 |
commit | 2e1d962b1a36eb0369d00e1e18c0bb810c871590 (patch) | |
tree | 0bc5e84c87eff81d52d5a3f29a9db63abf026d5d /ui/app/components/input-number.js | |
parent | f33bb3e2fd8ba1cc30dac11017f26ba82c26a82d (diff) | |
download | tangerine-wallet-browser-2e1d962b1a36eb0369d00e1e18c0bb810c871590.tar.gz tangerine-wallet-browser-2e1d962b1a36eb0369d00e1e18c0bb810c871590.tar.zst tangerine-wallet-browser-2e1d962b1a36eb0369d00e1e18c0bb810c871590.zip |
Remove currency input from input-number
Diffstat (limited to 'ui/app/components/input-number.js')
-rw-r--r-- | ui/app/components/input-number.js | 8 |
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', {}, [ |