From 1592d6ac3702c2625ac2fbf5bedb4104ec14e8f1 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 12 Nov 2025 07:53:23 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Mise=20=C3=A0=20jour=20du=20composant=20?= =?UTF-8?q?Calendar=20pour=20react-day-picker=20v9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le build échouait car le composant Calendar utilisait l'ancienne API de react-day-picker (IconLeft/IconRight) qui n'est plus supportée dans la version 9. Changements: - Remplacement de IconLeft et IconRight par le composant Chevron - Le composant Chevron gère maintenant l'orientation (left/right) - Compatible avec react-day-picker v9.11.1 Cette correction résout l'erreur TypeScript TS2353 et permet au build de se terminer avec succès. --- src/components/ui/calendar.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ui/calendar.tsx b/src/components/ui/calendar.tsx index 69bfe3c..5f41118 100644 --- a/src/components/ui/calendar.tsx +++ b/src/components/ui/calendar.tsx @@ -52,8 +52,10 @@ function Calendar({ ...classNames, }} components={{ - IconLeft: ({ ..._props }) => , - IconRight: ({ ..._props }) => , + Chevron: ({ orientation, ...props }) => { + const Icon = orientation === "left" ? ChevronLeft : ChevronRight; + return ; + }, }} {...props} />