aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/hex-as-decimal-input.js
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2017-03-23 01:35:02 +0800
committerDan Finlay <dan@danfinlay.com>2017-03-23 01:35:02 +0800
commit9f1f0bff1ea3267702a2ab75af293e6265e255e4 (patch)
treeed7a9d86c7ab2a63b3b8f6bdd314c58e7feef103 /ui/app/components/hex-as-decimal-input.js
parent0c82c520fe685484e8b1ccf0d13d543e1d505635 (diff)
downloadtangerine-wallet-browser-9f1f0bff1ea3267702a2ab75af293e6265e255e4.tar
tangerine-wallet-browser-9f1f0bff1ea3267702a2ab75af293e6265e255e4.tar.gz
tangerine-wallet-browser-9f1f0bff1ea3267702a2ab75af293e6265e255e4.tar.bz2
tangerine-wallet-browser-9f1f0bff1ea3267702a2ab75af293e6265e255e4.tar.lz
tangerine-wallet-browser-9f1f0bff1ea3267702a2ab75af293e6265e255e4.tar.xz
tangerine-wallet-browser-9f1f0bff1ea3267702a2ab75af293e6265e255e4.tar.zst
tangerine-wallet-browser-9f1f0bff1ea3267702a2ab75af293e6265e255e4.zip
Some progress
Diffstat (limited to 'ui/app/components/hex-as-decimal-input.js')
-rw-r--r--ui/app/components/hex-as-decimal-input.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/components/hex-as-decimal-input.js b/ui/app/components/hex-as-decimal-input.js
index c89ed0416..b2f1917f2 100644
--- a/ui/app/components/hex-as-decimal-input.js
+++ b/ui/app/components/hex-as-decimal-input.js
@@ -23,7 +23,7 @@ function HexAsDecimalInput () {
HexAsDecimalInput.prototype.render = function () {
const props = this.props
- const { value, onChange } = props
+ const { value, onChange, min } = props
const toEth = props.toEth
const suffix = props.suffix
const decimalValue = decimalize(value, toEth)
@@ -38,8 +38,9 @@ HexAsDecimalInput.prototype.render = function () {
textRendering: 'geometricPrecision',
},
}, [
- h('input.ether-balance.ether-balance-amount', {
+ h('input.hex-input', {
type: 'number',
+ min,
style: extend({
display: 'block',
textAlign: 'right',