[#625] added freebusy handling in event preview

This commit is contained in:
Camille Moussu
2026-03-12 09:26:58 +01:00
committed by Benoit TELLIER
parent f41c3cbd8d
commit 5269c43354
10 changed files with 137 additions and 61 deletions
+10 -2
View File
@@ -18,7 +18,8 @@ export function renderAttendeeBadge(
key: string,
t: (key: string) => string,
isFull?: boolean,
isOrganizer?: boolean
isOrganizer?: boolean,
caption?: string
) {
const classIcon =
a.partstat === "ACCEPTED" ? (
@@ -65,12 +66,19 @@ export function renderAttendeeBadge(
<Avatar {...stringAvatar(a.cn || a.cal_address)} />
</Badge>
<Box style={{ display: "flex", flexDirection: "column", minWidth: 0 }}>
<Typography noWrap>{a.cn || a.cal_address}</Typography>
<Typography variant="body2" noWrap>
{a.cn || a.cal_address}
</Typography>
{isOrganizer && (
<Typography variant="caption" color="text.secondary">
{t("event.organizer")}
</Typography>
)}
{caption && (
<Typography variant="caption" color="text.secondary">
{caption}
</Typography>
)}
</Box>
</Box>
);