-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: upgrade react-day-picker
to v9
#398
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼
|
||
const oldestYear = fromYear ?? DEFAULT_FROM_YEAR; | ||
const newestYear = toYear ?? currentYear + 15; | ||
const calendarHiddenOptions: Matcher[] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Relying on the react-compiler to perform auto memoizations here for better perf.
@@ -212,8 +221,9 @@ function CalendarDropdown(props: DropdownProps) { | |||
); | |||
} | |||
|
|||
return null; | |||
return <div>dropdown</div>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently, dropdown is only ever used for the selection of months
and year
. Ofc, we'll have to revisit this later should there be a need to use it for more than the aforementioned options.
@@ -76,13 +76,13 @@ function InputDatePicker({ | |||
{children} | |||
<PopoverContent | |||
align={align} | |||
className="max-w-[300px] px-0 pb-1.5 pt-1" | |||
className="w-full max-w-[400px] px-0 pb-1.5 pt-1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The width
change doesn't seem to do anything 🤔.
Upgrades the
react-day-picker
to v9 and resolves the breaking changes introduced with the version bump.