chore: update dependencies and fix calendar event hooks

Bump tailwindcss 4.2.0, lucide-react 0.575.0, @typescript-eslint 8.56.0,
tailwind-merge 3.5.0, and patch-level updates across 48 transitive packages.
Fix missing useCallback dependency in calendar event card.
This commit is contained in:
Matthieu MALVACHE
2026-02-22 18:07:30 +01:00
committed by Matthieu MALVACHE
parent 838ee4b8e5
commit 15c14b1833
5 changed files with 533 additions and 430 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ export function EventCard({ event, calendar, variant, onClick, isSelected, dragg
e.dataTransfer.setDragImage(preview, 0, 0);
requestAnimationFrame(() => preview.remove());
setIsBeingDragged(true);
}, [event, color, t, durationMinutes]);
}, [event, color, t, durationMinutes, timeString]);
const handleDragEnd = useCallback(() => {
setIsBeingDragged(false);
+3 -3
View File
@@ -237,7 +237,7 @@ export function EventModal({
relativeTo: null,
},
};
} else if (isEdit && event?.locations && Object.keys(event.locations).length > 0) {
} else if (event && event.locations && Object.keys(event.locations).length > 0) {
data.locations = null;
}
@@ -261,7 +261,7 @@ export function EventModal({
count: null,
until: null,
}];
} else if (isEdit && event?.recurrenceRules?.length) {
} else if (event && event.recurrenceRules?.length) {
data.recurrenceRules = null;
if (event.recurrenceOverrides) data.recurrenceOverrides = null;
if (event.excludedRecurrenceRules) data.excludedRecurrenceRules = null;
@@ -278,7 +278,7 @@ export function EventModal({
relatedTo: null,
},
};
} else if (isEdit && event?.alerts && Object.keys(event.alerts).length > 0) {
} else if (event && event.alerts && Object.keys(event.alerts).length > 0) {
data.alerts = null;
}