Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
@@ -40,8 +40,9 @@ function CalendarAccordion({
|
||||
const allCalendars = useAppSelector((state) => state.calendars.list);
|
||||
|
||||
const [expended, setExpended] = useState(defaultExpanded);
|
||||
if (calendars.length === 0 && !showAddButton) return null;
|
||||
useEffect(() => setExpended(defaultExpanded), [defaultExpanded]);
|
||||
|
||||
if (calendars.length === 0 && !showAddButton) return null;
|
||||
return (
|
||||
<Accordion
|
||||
defaultExpanded={defaultExpanded}
|
||||
|
||||
@@ -65,11 +65,6 @@ export function EventChip({
|
||||
// Determine owner attendee
|
||||
const ownerAttendee = getOwnerAttendee(attendees, ownerEmails);
|
||||
|
||||
// Handle non-owner attendee case
|
||||
if (attendees.length && !delegated && !ownerAttendee) {
|
||||
return <SimpleEventChip title={event.title} />;
|
||||
}
|
||||
|
||||
// Color and contrast logic
|
||||
const bestColor = getBestColor(
|
||||
(calendar.color as { light: string; dark: string }) ?? {
|
||||
|
||||
Reference in New Issue
Block a user