WIP // Real ABI params in Deploy Constructor #3314

This commit is contained in:
Nicolas Gotchac
2016-11-11 12:37:01 +01:00
parent 94b80cc08a
commit b59df1d7b8
3 changed files with 154 additions and 85 deletions

View File

@@ -65,7 +65,9 @@ export default class Input extends Component {
hideUnderline: PropTypes.bool,
value: PropTypes.oneOfType([
PropTypes.number, PropTypes.string
])
]),
min: PropTypes.any,
max: PropTypes.any
};
static defaultProps = {
@@ -98,7 +100,7 @@ export default class Input extends Component {
render () {
const { value } = this.state;
const { children, className, hideUnderline, disabled, error, label, hint, multiLine, rows, type } = this.props;
const { children, className, hideUnderline, disabled, error, label, hint, multiLine, rows, type, min, max } = this.props;
const readOnly = this.props.readOnly || disabled;
@@ -142,6 +144,8 @@ export default class Input extends Component {
onChange={ this.onChange }
onKeyDown={ this.onKeyDown }
inputStyle={ inputStyle }
min={ min }
max={ max }
>
{ children }
</TextField>