From bdd47b7a0e1fe7df7ed6b9918728d820c9b0b672 Mon Sep 17 00:00:00 2001 From: ORDONNEAU Antoine Date: Thu, 12 Mar 2026 10:08:10 +0100 Subject: [PATCH] =?UTF-8?q?correction=20calendrier=20ann=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Home/components/Calendar/calendar.jsx | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/src/pages/Home/components/Calendar/calendar.jsx b/src/pages/Home/components/Calendar/calendar.jsx index 2416a1a..b96a50a 100644 --- a/src/pages/Home/components/Calendar/calendar.jsx +++ b/src/pages/Home/components/Calendar/calendar.jsx @@ -19,7 +19,7 @@ Calendar() { const today = new Date(); const [currentMonth, setCurrentMonth] = useState(today.getMonth()); - const [currentYear] = useState(today.getFullYear()); + const [currentYear, setCurrentYear] = useState(today.getFullYear()); const [selectedDay, setSelectedDay] = useState(null); const eventsByDate = useMemo(() => { @@ -68,9 +68,31 @@ Calendar() {
- +

{monthNames[currentMonth]} {currentYear}

- +