Implement adding public and custom sources

This commit is contained in:
Lukas Martinelli
2016-12-28 15:57:30 +01:00
parent ba271e1fc6
commit 80678af691
4 changed files with 80 additions and 49 deletions

View File

@@ -5,6 +5,7 @@ class StringInput extends React.Component {
static propTypes = {
value: React.PropTypes.string,
style: React.PropTypes.object,
default: React.PropTypes.number,
onChange: React.PropTypes.func,
}
@@ -15,6 +16,7 @@ class StringInput extends React.Component {
...this.props.style
}}
value={this.props.value}
placeholder={this.props.default}
onChange={e => this.props.onChange(e.target.value)}
/>
}