[#162] changed preview modal looks to follow figma (#163)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-10-07 11:20:09 +02:00
committed by GitHub
parent 40c383c334
commit 3f8f3eff23
14 changed files with 731 additions and 619 deletions
@@ -20,7 +20,6 @@ export interface EventHandlersProps {
calendarRange: { start: Date; end: Date };
dispatch: any;
setOpenEventDisplay: (open: boolean) => void;
setAnchorPosition: (position: { top: number; left: number } | null) => void;
setEventDisplayedId: (id: string) => void;
setEventDisplayedCalId: (id: string) => void;
setEventDisplayedTemp: (temp: boolean) => void;
@@ -37,7 +36,6 @@ export const createEventHandlers = (props: EventHandlersProps) => {
calendarRange,
dispatch,
setOpenEventDisplay,
setAnchorPosition,
setEventDisplayedId,
setEventDisplayedCalId,
setEventDisplayedTemp,
@@ -79,7 +77,6 @@ export const createEventHandlers = (props: EventHandlersProps) => {
};
const handleCloseEventDisplay = () => {
setAnchorPosition(null);
setOpenEventDisplay(false);
};
@@ -109,10 +106,6 @@ export const createEventHandlers = (props: EventHandlersProps) => {
} else {
console.log(info.event);
setOpenEventDisplay(true);
setAnchorPosition({
top: info.jsEvent.clientY,
left: info.jsEvent.clientX,
});
setEventDisplayedId(info.event.extendedProps.uid);
setEventDisplayedCalId(info.event.extendedProps.calId);
setEventDisplayedTemp(info.event._def.extendedProps.temp);