mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 02:06:19 +01:00
Even out calendar.
This commit is contained in:
parent
d9ba4097ee
commit
451fbc84a4
@ -123,8 +123,7 @@ const DaySelector = ({ date, minDate, maxDate, locale, onSelect }) => {
|
||||
}
|
||||
|
||||
const days = [];
|
||||
const weekCount = addDays(startDay, 36).getMonth() === month ? 42 : 35;
|
||||
for (let i = 0; i < weekCount; i++) {
|
||||
for (let i = 0; i < 42; i++) {
|
||||
days.push(addDays(startDay, i));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user