[#83] Change minicalendar lib to MUI (#211)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-10-16 10:36:59 +02:00
committed by GitHub
parent b9905cbb7a
commit 0f82711d7d
9 changed files with 285 additions and 224 deletions
@@ -89,24 +89,6 @@ export const createEventHandlers = (props: EventHandlersProps) => {
setOpenEventDisplay(false);
};
const handleMonthUp = (
selectedMiniDate: Date,
setSelectedMiniDate: (date: Date) => void
) => {
setSelectedMiniDate(
new Date(selectedMiniDate.getFullYear(), selectedMiniDate.getMonth() - 1)
);
};
const handleMonthDown = (
selectedMiniDate: Date,
setSelectedMiniDate: (date: Date) => void
) => {
setSelectedMiniDate(
new Date(selectedMiniDate.getFullYear(), selectedMiniDate.getMonth() + 1)
);
};
const handleEventClick = (info: any) => {
info.jsEvent.preventDefault();
@@ -255,8 +237,6 @@ export const createEventHandlers = (props: EventHandlersProps) => {
handleDateSelect,
handleClosePopover,
handleCloseEventDisplay,
handleMonthUp,
handleMonthDown,
handleEventClick,
handleEventAllow,
handleEventDrop,