Add error field to timepicker

old
Javi Velasco 2015-12-20 17:52:01 +01:00
parent 027fc12600
commit 20d6787cb0
1 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import TimePickerDialog from './TimePickerDialog';
class TimePicker extends React.Component {
static propTypes = {
className: React.PropTypes.string,
error: React.PropTypes.string,
format: React.PropTypes.oneOf(['24hr', 'ampm']),
label: React.PropTypes.string,
onChange: React.PropTypes.func,
@ -44,6 +45,7 @@ class TimePicker extends React.Component {
<div data-react-toolbox='time-picker'>
<Input
className={style.input}
error={this.props.error}
label={this.props.label}
onMouseDown={this.handleInputMouseDown}
readOnly