Merge pull request #3430 from ethcore/ng-array-parameters

Handle contract constructor inputs
This commit is contained in:
Jaco Greeff
2016-11-15 14:35:10 +01:00
committed by GitHub
12 changed files with 497 additions and 96 deletions

View File

@@ -63,7 +63,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 = {
@@ -86,7 +88,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;
@@ -130,6 +132,8 @@ export default class Input extends Component {
onChange={ this.onChange }
onKeyDown={ this.onKeyDown }
inputStyle={ inputStyle }
min={ min }
max={ max }
>
{ children }
</TextField>