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} />