-
Notifications
You must be signed in to change notification settings - Fork 13
feat (calendar): add dateInfo #546
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
base: main
Are you sure you want to change the base?
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| showTooltip?: boolean; | ||
| tooltipMessages?: { [key: string]: any }; | ||
| tooltipMessages?: Record<string, ReactNode>; | ||
| dateInfo?: Record<string, ReactNode>; |
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.
it's better to take a function for additional information.
(date) => ReactNode
we can use this to render addition information. User will just pass a function
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.
Or we can do both. function and object both
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.
I think we can do both to make it more flexible. Updated the code
Description
Add dateInfo for calendar date.
Change snake case to camel case in calendar css.
Type of Change
How Has This Been Tested?
Manual and unit tests
Checklist:
Screenshots (if appropriate):
Related Issues
NA