Skip to content

Commit

Permalink
Add isInvalidDate prop to DatePicker (#17498)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk authored and hypest committed Nov 4, 2019
1 parent 03414de commit d5d66a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/src/date-time/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class DateTimePicker extends Component {
}

render() {
const { currentDate, is12Hour, onChange } = this.props;
const { currentDate, is12Hour, isInvalidDate, onChange } = this.props;

return (
<div className="components-datetime">
Expand All @@ -48,6 +48,7 @@ export class DateTimePicker extends Component {
<DatePicker
currentDate={ currentDate }
onChange={ onChange }
isInvalidDate={ isInvalidDate }
/>
</>
) }
Expand Down

0 comments on commit d5d66a8

Please sign in to comment.