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

DnD support for custom EventWrapper #880

Merged
merged 6 commits into from
Jun 19, 2018
Merged

DnD support for custom EventWrapper #880

merged 6 commits into from
Jun 19, 2018

Conversation

amkoehler
Copy link
Contributor

This is a continuation of the work I did on #843.

When testing out the dnd addon I found this note in a comment in withDragAndDrop.js:

 * Note: you cannot use custom `EventWrapper`, `DayWrapper` or `DateCellWrapper`
 * components when using this HOC as they are overwritten here.

With #843 we added support for DayWrapper and DateCellWrapper components. This PR continues that work and adds support for custom EventWrapper components. In hindsight I wish I had done this as part of that PR because it was a lot simpler than I thought it'd be.

Added stories for custom eventWrapper and custom eventWrapper with DnD.

amkoehler added 6 commits May 11, 2018 14:25
Fixed all hardcoded `defaultView` prop strings to use the Views
constants
- Pass through range and value props to match non-dnd component props
- Added `customComponents` utility file for use with stories
- Clarified comment in `withDragAndDrop`
Copy link
Owner

@jquense jquense left a comment

Choose a reason for hiding this comment

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

looks good thanks a ton 👍

@ehahn9
Copy link
Collaborator

ehahn9 commented Jun 18, 2018

Thanks, @amkoehler for your great improvements the early DnD work! Much appreciated!

@jquense jquense merged commit f9b5d53 into jquense:master Jun 19, 2018
@amkoehler
Copy link
Contributor Author

@ehahn9 anytime. You did the hard part.

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

Successfully merging this pull request may close these issues.

4 participants