graylog2-server
graylog2-server copied to clipboard
Updating to `react-router` v6.
Description
Motivation and Context
This PR is preparing the update to react-router
v6. Notable changes
include:
-
Switch
has becomeRoutes
- Only
Route
components are allowed belowRoutes
-
history
access should be avoided, instead we can useuseNavigation
-
Prompt
is not present anymore
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] Refactoring (non-breaking change)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [x] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [x] I have read the CONTRIBUTING document.
- [ ] I have added tests to cover my changes.