-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Switch from react-simple-dnd
to react-dnd
.
#705
Conversation
react-simple-dnd
to react-dnd
.react-simple-dnd
to react-dnd
.
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.
@tech4him1 just to keep this parseable, we should at least split out the internals so that the implementation in UnpublishedListing
is about the same. We could keep the drag and drop primitives in a directory under src/components/UI
.
Thoughts?
e5d156d
to
a859c40
Compare
`react-simple-dnd` is just a wrapper for `react-dnd`, and it doesn't support React 16. This PR changes to using the underlying library directly.
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.
Awesome, looks good!
@@ -11,6 +11,9 @@ import Button from 'react-toolbox/lib/button'; | |||
import UnpublishedListingCardMeta from './UnpublishedListingCardMeta.js'; | |||
import { status, statusDescriptions } from '../../constants/publishModes'; | |||
|
|||
// This is a namespace so that we can only drop these elements on a DropTarget with the same |
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.
👍
Going to go ahead and merge since this is mostly a port and fairly straightforward (and blocking the React 16 update). |
- Summary
react-simple-dnd
is just a wrapper forreact-dnd
, and it doesn't support React 16. This PR changes to using the underlying library directly.- Test plan
Manually tested unpublished entries drag-and-drop cards.
- Description for the changelog
Switch from
react-simple-dnd
toreact-dnd
.- A picture of a cute animal (not mandatory but encouraged)