parse-dashboard icon indicating copy to clipboard operation
parse-dashboard copied to clipboard

refactor: upgrade React DND to v16

Open damianstasik opened this issue 1 year ago • 1 comments

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+.

  1. Removed decorators required refactoring some code to hooks.
  2. Named export
  3. Hooks now need to return a function that returns a configuration.
  4. 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)

damianstasik avatar Sep 25 '22 20:09 damianstasik

Thanks for opening this pull request!

  • 🎉 We are excited about your hands-on contribution!