fix: Next/previous buttons on week view move 8 instead of 7 days (#10742)

This commit is contained in:
Moon Patel 2023-08-21 14:31:27 +05:30 committed by GitHub
parent 351dce5cfd
commit 2a9e061575
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,7 +91,7 @@ export function Header({
color="minimal"
StartIcon={ChevronLeft}
aria-label="Previous Day"
onClick={() => addToSelectedDate(-extraDays - 1)}
onClick={() => addToSelectedDate(-extraDays)}
/>
<Button
className="group rtl:mr-1 rtl:rotate-180"
@ -99,7 +99,7 @@ export function Header({
color="minimal"
StartIcon={ChevronRight}
aria-label="Next Day"
onClick={() => addToSelectedDate(extraDays + 1)}
onClick={() => addToSelectedDate(extraDays)}
/>
{selectedDateMin3DaysDifference && (
<Button