aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/input-number.js
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-08-26 07:23:30 +0800
committerDan <danjm.com@gmail.com>2017-08-26 07:24:04 +0800
commitc9e134a996f69367155aab416abb683fb82d4b9a (patch)
treea4a9a435794eac9eef3db75c4f55a4431cb2e901 /ui/app/components/input-number.js
parent05e6eaf171a16c96760cc899ef527a8f6d83434d (diff)
downloadtangerine-wallet-browser-c9e134a996f69367155aab416abb683fb82d4b9a.tar
tangerine-wallet-browser-c9e134a996f69367155aab416abb683fb82d4b9a.tar.gz
tangerine-wallet-browser-c9e134a996f69367155aab416abb683fb82d4b9a.tar.bz2
tangerine-wallet-browser-c9e134a996f69367155aab416abb683fb82d4b9a.tar.lz
tangerine-wallet-browser-c9e134a996f69367155aab416abb683fb82d4b9a.tar.xz
tangerine-wallet-browser-c9e134a996f69367155aab416abb683fb82d4b9a.tar.zst
tangerine-wallet-browser-c9e134a996f69367155aab416abb683fb82d4b9a.zip
Fully connect gas data in send form and tooltip to state; final styling improvements.
Fully connect gas fields in send form and tooltip to state
Diffstat (limited to 'ui/app/components/input-number.js')
-rw-r--r--ui/app/components/input-number.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/app/components/input-number.js b/ui/app/components/input-number.js
index 5b4265459..c8bdd5ec5 100644
--- a/ui/app/components/input-number.js
+++ b/ui/app/components/input-number.js
@@ -16,9 +16,9 @@ function InputNumber () {
this.setValue = this.setValue.bind(this);
}
-InputNumber.prototype.componentWillMount == function () {
+InputNumber.prototype.componentWillMount = function () {
const { initValue = 0 } = this.props
-
+
this.setState({ value: initValue });
}
@@ -36,7 +36,7 @@ InputNumber.prototype.setValue = function (newValue) {
InputNumber.prototype.render = function () {
const { unitLabel, step = 1, min, placeholder } = this.props
const { value } = this.state
-
+
return h('div.customize-gas-input-wrapper', {}, [
h('input.customize-gas-input', {
placeholder,