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

This commit is contained in:
Moon Patel authored and GitHub committed 2023-08-21 11:01:27 +02:00
1 parent 351dce5cfd
commit 2a9e061575
1 file changed
+2 -2
@@ -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