Skip to content

DnD support for custom EventWrapper#880

Merged
jquense merged 6 commits into
bigcalendar:masterfrom
amkoehler:master
Jun 19, 2018
Merged

DnD support for custom EventWrapper#880
jquense merged 6 commits into
bigcalendar:masterfrom
amkoehler:master

Conversation

@amkoehler

Copy link
Copy Markdown
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`

@jquense jquense left a comment

Copy link
Copy Markdown
Collaborator

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

ehahn9 commented Jun 18, 2018

Copy link
Copy Markdown
Collaborator

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

@jquense jquense merged commit f9b5d53 into bigcalendar:master Jun 19, 2018
@amkoehler

Copy link
Copy Markdown
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