[#276] removed divider from event without actions (#288)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-11-06 15:50:09 +01:00
committed by GitHub
parent 36bc027d6d
commit e7f8b62ac8
+6 -5
View File
@@ -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 && (
<>
<>
<Typography sx={{ marginRight: 2 }}>
{t("eventPreview.attendingQuestion")}
@@ -450,8 +451,8 @@ export default function EventPreviewModal({
</Button>
</Box>
</>
)}
</>
</>
)
}
>
{((event.class !== "PRIVATE" && !isOwn) || isOwn) && (