From af8e360464a4baf8205276ecd701d6e056944128 Mon Sep 17 00:00:00 2001 From: Arlindo Pereira Date: Fri, 20 Dec 2024 15:01:44 +0100 Subject: [PATCH] Change hardcoded month to november instead of december --- .../forms/controls/DatePicker/DatePicker.stories.tsx | 2 +- .../controls/DatePickerRange/DatePickerRange.stories.tsx | 4 ++-- .../forms/controls/DateTimePicker/DateTimePicker.stories.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/forms/controls/DatePicker/DatePicker.stories.tsx b/src/components/forms/controls/DatePicker/DatePicker.stories.tsx index 9d676305..6008f542 100644 --- a/src/components/forms/controls/DatePicker/DatePicker.stories.tsx +++ b/src/components/forms/controls/DatePicker/DatePicker.stories.tsx @@ -28,7 +28,7 @@ export default { export const Standard: Story = { render: (args) => { - const [startDate, setStartDate] = React.useState(new Date(2024, 11, 12, 9, 41)); + const [startDate, setStartDate] = React.useState(new Date(2024, 10, 12, 9, 41)); return ( // with a fixed height to avoid hiding the bottom part of the calendar diff --git a/src/components/forms/controls/DatePickerRange/DatePickerRange.stories.tsx b/src/components/forms/controls/DatePickerRange/DatePickerRange.stories.tsx index 3791107d..799dd7af 100644 --- a/src/components/forms/controls/DatePickerRange/DatePickerRange.stories.tsx +++ b/src/components/forms/controls/DatePickerRange/DatePickerRange.stories.tsx @@ -28,8 +28,8 @@ export default { export const Standard: Story = { render: (args) => { - const [startDate, setStartDate] = React.useState(new Date(2024, 11, 12, 9, 41)); - const [endDate, setEndDate] = React.useState(new Date(2024, 11, 14, 9, 41)); + const [startDate, setStartDate] = React.useState(new Date(2024, 10, 12, 9, 41)); + const [endDate, setEndDate] = React.useState(new Date(2024, 10, 14, 9, 41)); const onChange = (dates: [Date | null, Date | null]) => { const [start, end] = dates; setStartDate(start); diff --git a/src/components/forms/controls/DateTimePicker/DateTimePicker.stories.tsx b/src/components/forms/controls/DateTimePicker/DateTimePicker.stories.tsx index b622b18d..fc1d6b53 100644 --- a/src/components/forms/controls/DateTimePicker/DateTimePicker.stories.tsx +++ b/src/components/forms/controls/DateTimePicker/DateTimePicker.stories.tsx @@ -28,7 +28,7 @@ export default { export const Standard: Story = { render: (args) => { - const [date, setDate] = React.useState(new Date(2024, 11, 12, 9, 41)); + const [date, setDate] = React.useState(new Date(2024, 10, 12, 9, 41)); return ( // with a fixed height to avoid hiding the bottom part of the calendar