Skip to content

Commit

Permalink
Updating prop types.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuspahl committed Oct 19, 2023
1 parent c26c2f7 commit db8f68a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion graylog2-web-interface/src/components/common/DatePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ const DatePicker = ({ date, fromDate, onChange, showOutsideDays }: Props) => {

DatePicker.propTypes = {
/** Initial date to select in the date picker. */
date: PropTypes.string,
date: PropTypes.oneOfType([
PropTypes.object,
PropTypes.string,
]),
/**
* Callback that will be called when user picks a date. It will receive the new selected day,
* `react-day-picker`'s modifiers, and the original event as arguments.
Expand Down

0 comments on commit db8f68a

Please sign in to comment.