mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-05-10 19:21:46 +00:00
fix: corrige props depreciadas do react-day-picker v10
`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 <noreply@anthropic.com>
This commit is contained in:
@@ -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",
|
: "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,
|
defaultClassNames.caption_label,
|
||||||
),
|
),
|
||||||
table: "w-full border-collapse",
|
month_grid: "w-full border-collapse",
|
||||||
weekdays: cn("flex", defaultClassNames.weekdays),
|
weekdays: cn("flex", defaultClassNames.weekdays),
|
||||||
weekday: cn(
|
weekday: cn(
|
||||||
"text-muted-foreground rounded-md flex-1 font-normal text-xs select-none",
|
"text-muted-foreground rounded-md flex-1 font-normal text-xs select-none",
|
||||||
|
|||||||
@@ -172,8 +172,8 @@ export function DatePicker({
|
|||||||
month={month}
|
month={month}
|
||||||
onMonthChange={setMonth}
|
onMonthChange={setMonth}
|
||||||
onSelect={handleCalendarSelect}
|
onSelect={handleCalendarSelect}
|
||||||
fromYear={2020}
|
startMonth={new Date(2020, 0)}
|
||||||
toYear={new Date().getFullYear() + 10}
|
endMonth={new Date(new Date().getFullYear() + 10, 11)}
|
||||||
locale={ptBR}
|
locale={ptBR}
|
||||||
/>
|
/>
|
||||||
</PopoverContent>
|
</PopoverContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user