From 81e7151876f9d4a92de5a981a94932a81ba52fcf Mon Sep 17 00:00:00 2001 From: Felipe Coutinho Date: Sun, 10 May 2026 14:24:35 +0000 Subject: [PATCH] fix: corrige props depreciadas do react-day-picker v10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `table` renomeado para `month_grid` e `fromYear`/`toYear` substituídos por `startMonth`/`endMonth`, quebrando o build do Docker. Co-Authored-By: Claude Sonnet 4.6 --- src/shared/components/ui/calendar.tsx | 2 +- src/shared/components/ui/date-picker.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shared/components/ui/calendar.tsx b/src/shared/components/ui/calendar.tsx index f45654c..3691c84 100644 --- a/src/shared/components/ui/calendar.tsx +++ b/src/shared/components/ui/calendar.tsx @@ -87,7 +87,7 @@ function Calendar({ : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5", defaultClassNames.caption_label, ), - table: "w-full border-collapse", + month_grid: "w-full border-collapse", weekdays: cn("flex", defaultClassNames.weekdays), weekday: cn( "text-muted-foreground rounded-md flex-1 font-normal text-xs select-none", diff --git a/src/shared/components/ui/date-picker.tsx b/src/shared/components/ui/date-picker.tsx index 51b2f47..9ab5a0a 100644 --- a/src/shared/components/ui/date-picker.tsx +++ b/src/shared/components/ui/date-picker.tsx @@ -172,8 +172,8 @@ export function DatePicker({ month={month} onMonthChange={setMonth} onSelect={handleCalendarSelect} - fromYear={2020} - toYear={new Date().getFullYear() + 10} + startMonth={new Date(2020, 0)} + endMonth={new Date(new Date().getFullYear() + 10, 11)} locale={ptBR} />