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
chore: update to use react-router@6+ #19184
Conversation
4fffa79
to
2847c16
Compare
2847c16
to
d565e8b
Compare
Size Change: +1.75 kB (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
62b9e25
to
c3df71f
Compare
c3df71f
to
31eb1bb
Compare
710bc6f
to
1700b6f
Compare
b0c7d37
to
250f5d2
Compare
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.
this react router 6 of yours is pretty neat
...ges/core/admin/admin/src/content-manager/components/EditViewDataManagerProvider/Provider.tsx
Show resolved
Hide resolved
packages/core/admin/admin/src/content-manager/hooks/useLayouts.ts
Outdated
Show resolved
Hide resolved
packages/core/admin/admin/src/content-manager/pages/EditSettingsView/index.jsx
Show resolved
Hide resolved
packages/core/admin/admin/src/content-manager/pages/EditSettingsView/index.jsx
Show resolved
Hide resolved
packages/core/content-releases/admin/src/components/CMReleasesContainer.tsx
Outdated
Show resolved
Hide resolved
@@ -6,7 +6,7 @@ import has from 'lodash/has'; | |||
import isEqual from 'lodash/isEqual'; | |||
import upperFirst from 'lodash/upperFirst'; | |||
import { useIntl } from 'react-intl'; | |||
import { Prompt, useRouteMatch } from 'react-router-dom'; | |||
import { unstable_usePrompt as usePrompt, useMatch } from 'react-router-dom'; |
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.
same comment as earlier about usePrompt
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.
Same response – OOS for the PR, I would talk to DX about the handling the CTB in this case :)
...ages/plugins/users-permissions/admin/src/pages/Roles/pages/ListPage/components/TableBody.jsx
Outdated
Show resolved
Hide resolved
d58a331
to
e5ef47d
Compare
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.
happy to do qa after we sort these comments :)
packages/core/admin/admin/src/pages/Settings/pages/Webhooks/ListPage.tsx
Outdated
Show resolved
Hide resolved
packages/plugins/i18n/admin/src/components/CMEditViewLocalePicker.tsx
Outdated
Show resolved
Hide resolved
I'll rebase when we're all happy with the changes 👍🏼 |
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.
I clicked around a bunch of times and couldn't break it 📈
7bed3ce
to
117ab8e
Compare
chore: refactor all routes to use the children design pattern chore: convert app to use React.lazy chore: fix ts errors test: fix all broken tests from router changes chore: revert adding `path` property and just append to routes with splat chore: cleanup deps chore(releases): convert to rrd@6 chore: fix broken test timeout with EditSettingsView fix: warnings & add tests around deprecation messages test(content-releases): fix mocking issue test(content-manager): fix e2e tests chore: minor tweaks chore: rename screaming case to getter chore: pr fixes & amends
117ab8e
to
3e409b3
Compare
What does it do?
to
properties with absolute pathsComponent
propertyWhy is it needed?
How to test it?
Related issue(s)/PR(s)