()
| 18 | } |
| 19 | |
| 20 | render() { |
| 21 | const { label, name, help, ...rest } = this.props; |
| 22 | return ( |
| 23 | <FormGroup controlId={name}> |
| 24 | <ControlLabel>{label}</ControlLabel> |
| 25 | <FormControl componentClass="input" name={name} /> |
| 26 | {help && <HelpBlock>{help}</HelpBlock>} |
| 27 | </FormGroup> |
| 28 | ); |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | StringField.propTypes = { |