feat: fix different weeks comments

This commit is contained in:
Nevo David 2024-03-16 17:24:44 +07:00
parent 9e7426e4b7
commit 236fc7fbf7
1 changed files with 3 additions and 0 deletions

View File

@ -109,6 +109,7 @@ export const Calendar = () => {
.local()
.format('YYYY-MM-DD HH:mm') ===
dayjs()
.isoWeek(currentWeek)
.isoWeekday(index + 1)
.hour(+hour.split(':')[0] - 1)
.minute(0)
@ -116,10 +117,12 @@ export const Calendar = () => {
)?.total || 0
}
date={dayjs()
.isoWeek(currentWeek)
.isoWeekday(index + 1)
.hour(+hour.split(':')[0] - 1)
.minute(0)}
/>
{console.log(currentWeek)}
{['00', '10', '20', '30', '40', '50'].map((num) => (
<CalendarColumn
key={day + hour + num + currentWeek + currentYear}