[explore-v2] handle field overrides (#1535)

* pass all props to *Field components

* s/fieldSetOverrides/fieldOverrides

* handle field overrides
This commit is contained in:
Alanna Scott
2016-11-03 13:38:17 -07:00
committed by GitHub
parent d9b49ca2bc
commit 88b1f956c7
4 changed files with 43 additions and 17 deletions

View File

@@ -23,19 +23,19 @@ const defaultProps = {
export default class FieldSet extends React.Component {
renderCheckBoxField() {
return <CheckboxField label={this.props.label} description={this.props.description} />;
return <CheckboxField {...this.props} />;
}
renderTextAreaField() {
return <TextAreaField label={this.props.label} description={this.props.description} />;
return <TextAreaField {...this.props} />;
}
renderSelectField() {
return <SelectField label={this.props.label} description={this.props.description} />;
return <SelectField {...this.props} />;
}
renderTextField() {
return <TextField label={this.props.label} description={this.props.description} />;
return <TextField {...this.props} />;
}
render() {