[#7] added MOVE support for changing calendar for event + missing tests for this PR

This commit is contained in:
Camille Moussu
2025-08-28 13:08:10 +02:00
parent 6669eeb456
commit a2b0ab32b7
8 changed files with 785 additions and 50 deletions
-7
View File
@@ -233,14 +233,8 @@ function EventPopover({
const endDate = new Date(end);
const startDate = new Date(start);
setAllDay(!allday);
console.log(
endDate.getDate() === startDate.getDate(),
endDate.getDate(),
startDate.getDate()
);
if (endDate.getDate() === startDate.getDate()) {
endDate.setDate(startDate.getDate() + 1);
console.log("formatedd", formatLocalDateTime(endDate));
setEnd(formatLocalDateTime(endDate));
}
@@ -258,7 +252,6 @@ function EventPopover({
),
allDay: allday,
};
console.log(newRange, selectedRange);
setSelectedRange(newRange);
}}
/>