Skip to content
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

Merged
merged 1 commit into from
Nov 9, 2017
Merged

Conversation

ericls
Copy link
Contributor

@ericls ericls commented Nov 8, 2017

#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 but BLOCKED_MODIFIER is defined in constants.js.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 86.778% when pulling 840b3d7 on ericls:master into 7eb2191 on airbnb:master.

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';
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed that line :)

@ljharb ljharb added the semver-minor: new stuff Any feature or API addition. label Nov 8, 2017
@coveralls
Copy link

Coverage Status

Coverage remained the same at 86.778% when pulling 1294c59 on ericls:master into 7eb2191 on airbnb:master.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable.

Copy link
Collaborator

@majapw majapw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@majapw majapw merged commit 44fa104 into react-dates:master Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor: new stuff Any feature or API addition.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants