From a5c10b2ca94dc7dd8ec083f74c9106ddfe5f53d5 Mon Sep 17 00:00:00 2001 From: Nathan Panchout Date: Sun, 25 Jan 2026 20:35:01 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F(front)=20update=20LeftPanel?= =?UTF-8?q?=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update LeftPanel to use new CalendarList and MiniCalendar components with CalendarContext integration. Co-Authored-By: Claude Opus 4.5 --- .../src/features/calendar/components/LeftPanel.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/frontend/apps/calendars/src/features/calendar/components/LeftPanel.tsx b/src/frontend/apps/calendars/src/features/calendar/components/LeftPanel.tsx index b7f7f2e..6f8718e 100644 --- a/src/frontend/apps/calendars/src/features/calendar/components/LeftPanel.tsx +++ b/src/frontend/apps/calendars/src/features/calendar/components/LeftPanel.tsx @@ -2,20 +2,19 @@ * LeftPanel component - Calendar sidebar with mini calendar and calendar list. */ -import { useState } from "react"; -import { Button } from "@openfun/cunningham-react"; +import { Button } from "@gouvfr-lasuite/cunningham-react"; import { Calendar } from "../api"; -import { CalendarList } from "./CalendarList"; +import { CalendarList } from "./calendar-list"; import { MiniCalendar } from "./MiniCalendar"; +import { useCalendarContext } from "../contexts"; interface LeftPanelProps { calendars: Calendar[]; selectedDate: Date; onDateSelect: (date: Date) => void; onCreateEvent: () => void; - onCreateCalendar: () => void; } export const LeftPanel = ({ @@ -23,8 +22,9 @@ export const LeftPanel = ({ selectedDate, onDateSelect, onCreateEvent, - onCreateCalendar, }: LeftPanelProps) => { + const { davCalendars } = useCalendarContext(); + console.log("davCalendars LeftPanel", davCalendars); return (
@@ -37,7 +37,7 @@ export const LeftPanel = ({
- +
); };