diff --git a/client/src/components/ui/calendar.tsx b/client/src/components/ui/calendar.tsx index f525db7..a637f3b 100644 --- a/client/src/components/ui/calendar.tsx +++ b/client/src/components/ui/calendar.tsx @@ -13,10 +13,24 @@ function Calendar({ showOutsideDays = true, ...props }: CalendarProps) { + // Définir le modificateur pour les weekends (samedi = 6, dimanche = 0) + const isWeekend = (date: Date) => { + const day = date.getDay(); + return day === 0 || day === 6; // Dimanche ou Samedi + }; + return (