diff --git a/src/features/Search/SearchResultsPage.tsx b/src/features/Search/SearchResultsPage.tsx index 0adf811..895bf5d 100644 --- a/src/features/Search/SearchResultsPage.tsx +++ b/src/features/Search/SearchResultsPage.tsx @@ -1,7 +1,8 @@ import ArrowBackIcon from "@mui/icons-material/ArrowBack"; import RepeatIcon from "@mui/icons-material/Repeat"; import SquareRoundedIcon from "@mui/icons-material/SquareRounded"; -import { Box, IconButton, Stack, Typography } from "@mui/material"; +import VideocamIcon from "@mui/icons-material/Videocam"; +import { Box, Button, IconButton, Stack, Typography } from "@mui/material"; import CircularProgress from "@mui/material/CircularProgress"; import { useI18n } from "twake-i18n"; import { useState } from "react"; @@ -184,12 +185,8 @@ function ResultItem({ <> handleOpenResult(eventData)} > - + {startDate.toLocaleDateString(t("locale"), { day: "2-digit", month: "short", @@ -218,49 +215,50 @@ function ResultItem({ )} - - {!eventData.data.allDay && ( - <> - {startDate.toLocaleTimeString(t("locale"), { - hour: "2-digit", - minute: "2-digit", - timeZone, - })} - - - {endDate.toLocaleTimeString(t("locale"), { - hour: "2-digit", - minute: "2-digit", - timeZone, - })} - - )} - + {!eventData.data.allDay && ( + + {startDate.toLocaleTimeString(t("locale"), { + hour: "2-digit", + minute: "2-digit", + timeZone, + })} + - + {endDate.toLocaleTimeString(t("locale"), { + hour: "2-digit", + minute: "2-digit", + timeZone, + })} + + )} - + {eventData.data.summary || t("event.untitled")} {eventData.data.isRecurrentMaster && } - - {eventData.data.organizer?.cn || - eventData.data.organizer?.email || - ""} - + {(eventData.data.organizer?.cn || eventData.data.organizer?.email) && ( + + {eventData.data.organizer.cn || eventData.data.organizer.email} + + )} {eventData.data?.location && ( - {eventData.data?.location ?? ""} + {eventData.data.location} )} - - {eventData.data?.description?.replace(/\n/g, " ") ?? ""} - + {eventData.data?.description && ( + + {eventData.data.description.replace(/\n/g, " ")} + + )} + {eventData.data["x-openpaas-videoconference"] && ( + + )} {calendar && calendar.events[eventData.data.uid] && (