-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
pass day modifiers to renderDay function #829
Conversation
src/index.js
Outdated
@@ -18,3 +18,4 @@ export { default as isSameDay } from './utils/isSameDay'; | |||
export { default as toISODateString } from './utils/toISODateString'; | |||
export { default as toLocalizedDateString } from './utils/toLocalizedDateString'; | |||
export { default as toMomentObject } from './utils/toMomentObject'; | |||
export { default as constants } from './constants'; |
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.
This isn't necessary; someone who wants them can require/import from react-dates/lib/constants
already.
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.
Removed that line :)
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.
Seems reasonable.
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.
LGTM!
#828
Also exposes the constants?Not sure if that's a good idea.I see most modifiers are defined/added in the
CalendarDay
component file butBLOCKED_MODIFIER
is defined inconstants.js
.