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

Ability to highlight dates or date ranges #99

Closed
aidanlister opened this issue Apr 2, 2017 · 2 comments
Closed

Ability to highlight dates or date ranges #99

aidanlister opened this issue Apr 2, 2017 · 2 comments

Comments

@aidanlister
Copy link

I need to highlight a window of opportunity, e.g. you can pick any date, but these two weeks are preferred. For my case is tolerance periods for routine maintenance, but it might be discounted or off season rates, etc.

Is there any way to achieve this currently? If not, would you welcome a PR? If so can you point me in the right direction?

Thanks,

@clauderic
Copy link
Owner

clauderic commented Apr 2, 2017

Hey @aidanlister, this isn't something that's built currently, but PRs are certainly welcome if you come up with something that can be useful to others.

As of version 2.0.0, you can now enhance react-infinite-calendar using recompose. Take a look at the implementation for withMultipleDates and withRange, they should point you in the right direction to build your own HOC that would add this functionality.

Going to close this issue because this isn't something I plan on working myself, but we can keep chatting here or in a PR.

@vijayst
Copy link

vijayst commented Jul 10, 2017

I wrote an article how to highlight dates outside of react-infinite-calendar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants