parse-dashboard
parse-dashboard copied to clipboard
refactor: upgrade React DND to v16
New Pull Request Checklist
- [x] I am not disclosing a vulnerability.
- [x] I am creating this PR in reference to an issue.
Issue Description
I upgraded React DnD to latest version which required a few changes due to breaking changes introduced in react-dnd@11+
.
- Removed decorators required refactoring some code to hooks.
- Named export
- Hooks now need to return a function that returns a configuration.
- Item type should now be provided directly in configuration, not nested in
item
.
Note: this PR requires React 17 in order to work.
Related issue: #1950
Approach
TODOs before merging
- [ ] Add tests
- [ ] Add changes to documentation (guides, repository pages, in-code descriptions)
- [x] A changelog entry is created automatically using the pull request title (do not manually add a changelog entry)
Thanks for opening this pull request!
- 🎉 We are excited about your hands-on contribution!