Skip to content

Commit

Permalink
Add error field to date picker
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Dec 20, 2015
1 parent 802f50f commit 3479f5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/date_picker/DatePicker.jsx
Expand Up @@ -7,6 +7,7 @@ import time from '../utils/time';

class DatePicker extends React.Component {
static propTypes = {
error: React.PropTypes.string,
label: React.PropTypes.string,
maxDate: React.PropTypes.object,
minDate: React.PropTypes.object,
Expand Down Expand Up @@ -40,6 +41,7 @@ class DatePicker extends React.Component {
<div data-toolbox='date-picker'>
<Input
className={style.input}
error={this.props.error}
onMouseDown={this.handleInputMouseDown}
label={this.props.label}
readOnly
Expand Down

0 comments on commit 3479f5b

Please sign in to comment.