Tabs to spaces in input fields

This commit is contained in:
Lukas Martinelli 2016-12-18 20:09:27 +01:00
parent 8e92984d48
commit 95b2dad2a3
3 changed files with 61 additions and 61 deletions

View file

@ -3,7 +3,7 @@ import inputStyle from './input.js'
/*** Number fields with support for min, max and units and documentation*/
class StringField extends React.Component {
static propTypes = {
static propTypes = {
onChange: React.PropTypes.func.isRequired,
name: React.PropTypes.string.isRequired,
value: React.PropTypes.string,
@ -16,7 +16,7 @@ static propTypes = {
return this.props.onChange(value === "" ? null: value)
}
render() {
render() {
return <div style={inputStyle.property}>
<label style={inputStyle.label}>{this.props.name}</label>
<input