[#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} open={open && !hidePreview}
onClose={() => onClose({}, "backdropClick")} onClose={() => onClose({}, "backdropClick")}
showHeaderActions={false} showHeaderActions={false}
actionsBorderTop={true} actionsBorderTop={currentUserAttendee && isOwn}
actionsJustifyContent="center" actionsJustifyContent="center"
style={{ overflow: "auto" }} style={{ overflow: "auto" }}
title={ title={
@@ -312,8 +312,9 @@ export default function EventPreviewModal({
) )
} }
actions={ actions={
<> currentUserAttendee &&
{currentUserAttendee && ( isOwn && (
<>
<> <>
<Typography sx={{ marginRight: 2 }}> <Typography sx={{ marginRight: 2 }}>
{t("eventPreview.attendingQuestion")} {t("eventPreview.attendingQuestion")}
@@ -450,8 +451,8 @@ export default function EventPreviewModal({
</Button> </Button>
</Box> </Box>
</> </>
)} </>
</> )
} }
> >
{((event.class !== "PRIVATE" && !isOwn) || isOwn) && ( {((event.class !== "PRIVATE" && !isOwn) || isOwn) && (