From db8f68a21e1ed7c5741f5609b400d357a65d5073 Mon Sep 17 00:00:00 2001 From: Linus Pahl Date: Thu, 19 Oct 2023 11:44:43 +0200 Subject: [PATCH] Updating prop types. --- graylog2-web-interface/src/components/common/DatePicker.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/graylog2-web-interface/src/components/common/DatePicker.tsx b/graylog2-web-interface/src/components/common/DatePicker.tsx index d29e50992263..0c1843e7b446 100644 --- a/graylog2-web-interface/src/components/common/DatePicker.tsx +++ b/graylog2-web-interface/src/components/common/DatePicker.tsx @@ -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.