From e7f8b62ac80f094c50fa1eede4da536df5ff9077 Mon Sep 17 00:00:00 2001 From: Camille Moussu <66134347+Eriikah@users.noreply.github.com> Date: Thu, 6 Nov 2025 15:50:09 +0100 Subject: [PATCH] [#276] removed divider from event without actions (#288) Co-authored-by: Camille Moussu --- src/features/Events/EventDisplayPreview.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/features/Events/EventDisplayPreview.tsx b/src/features/Events/EventDisplayPreview.tsx index d8f5af1..53d270a 100644 --- a/src/features/Events/EventDisplayPreview.tsx +++ b/src/features/Events/EventDisplayPreview.tsx @@ -137,7 +137,7 @@ export default function EventPreviewModal({ open={open && !hidePreview} onClose={() => onClose({}, "backdropClick")} showHeaderActions={false} - actionsBorderTop={true} + actionsBorderTop={currentUserAttendee && isOwn} actionsJustifyContent="center" style={{ overflow: "auto" }} title={ @@ -312,8 +312,9 @@ export default function EventPreviewModal({ ) } actions={ - <> - {currentUserAttendee && ( + currentUserAttendee && + isOwn && ( + <> <> {t("eventPreview.attendingQuestion")} @@ -450,8 +451,8 @@ export default function EventPreviewModal({ - )} - + + ) } > {((event.class !== "PRIVATE" && !isOwn) || isOwn) && (