fix: year 2025 missing in date picker (#4647)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
devin-ai-integration[bot] 2025-01-06 09:56:29 -05:00 committed by GitHub
parent a863808947
commit 4a8e8cacf2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ function Calendar({ className, classNames, showOutsideDays = true, ...props }: C
className={cn('p-3', className)}
captionLayout="dropdown"
fromYear={1945}
toYear={2024}
toYear={new Date().getFullYear()}
labels={{
labelMonthDropdown: () => undefined,
labelYearDropdown: () => undefined,