Skip to content

Commit

Permalink
Merge pull request #71 from fortanix/fix/calendar-previous-month
Browse files Browse the repository at this point in the history
Change hardcoded month to november instead of december
  • Loading branch information
mkrause authored Dec 20, 2024
2 parents 5404178 + af8e360 commit 74803a5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {

export const Standard: Story = {
render: (args) => {
const [startDate, setStartDate] = React.useState<Date | null>(new Date(2024, 11, 12, 9, 41));
const [startDate, setStartDate] = React.useState<Date | null>(new Date(2024, 10, 12, 9, 41));

return (
// with a fixed height to avoid hiding the bottom part of the calendar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export default {

export const Standard: Story = {
render: (args) => {
const [startDate, setStartDate] = React.useState<Date | null>(new Date(2024, 11, 12, 9, 41));
const [endDate, setEndDate] = React.useState<Date | null>(new Date(2024, 11, 14, 9, 41));
const [startDate, setStartDate] = React.useState<Date | null>(new Date(2024, 10, 12, 9, 41));
const [endDate, setEndDate] = React.useState<Date | null>(new Date(2024, 10, 14, 9, 41));
const onChange = (dates: [Date | null, Date | null]) => {
const [start, end] = dates;
setStartDate(start);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {

export const Standard: Story = {
render: (args) => {
const [date, setDate] = React.useState<Date | null>(new Date(2024, 11, 12, 9, 41));
const [date, setDate] = React.useState<Date | null>(new Date(2024, 10, 12, 9, 41));

return (
// with a fixed height to avoid hiding the bottom part of the calendar
Expand Down

0 comments on commit 74803a5

Please sign in to comment.