[#72] show event duplicator in the event preview

This commit is contained in:
Camille Moussu
2025-09-11 15:37:32 +02:00
parent 48c17b1a0f
commit 7b5e03ac7e
3 changed files with 7 additions and 4 deletions
-1
View File
@@ -244,7 +244,6 @@ export default function EventDisplayModal({
<Card sx={{ p: 2, position: "absolute" }}>
{/* Close button */}
<Box sx={{ position: "absolute", top: 8, right: 8 }}>
<EventDuplication event={event} onClose={onClose} />
<IconButton
size="small"
onClick={() => onClose({}, "backdropClick")}
@@ -39,6 +39,7 @@ import EventDisplayModal, {
} from "./EventDisplay";
import { getEvent } from "./EventApi";
import { CalendarEvent } from "./EventsTypes";
import EventDuplication from "../../components/Event/EventDuplicate";
export default function EventPreviewModal({
eventId,
@@ -122,6 +123,7 @@ export default function EventPreviewModal({
gap: 1,
}}
>
<EventDuplication event={event} onClose={onClose} />
{mailSpaUrl && attendees.length > 0 && (
<IconButton
size="small"