-
Notifications
You must be signed in to change notification settings - Fork 19
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
feat: upgrade react router to v6 #776
Merged
Merged
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6eed820
feat: upgrade react router to v6
Syed-Ali-Abbas-Zaidi ccaf7e7
fix: test cases that were affected due to react rotuer upgrade
Syed-Ali-Abbas-Zaidi dc741da
Merge branch 'master' of github.com:openedx/frontend-app-learner-port…
Syed-Ali-Abbas-Zaidi 3d3e4db
Merge branch 'master' of github.com:openedx/frontend-app-learner-port…
Syed-Ali-Abbas-Zaidi 3ad4324
Merge branch 'master' of github.com:openedx/frontend-app-learner-port…
Syed-Ali-Abbas-Zaidi dba2db1
refactor: improve test cases
Syed-Ali-Abbas-Zaidi 8a82c1b
fix: navlink issue
Syed-Ali-Abbas-Zaidi b629118
refactor: add key to route mapping
Syed-Ali-Abbas-Zaidi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,20 +8,19 @@ | |
], | ||
"dependencies": { | ||
"@edx/brand": "npm:@edx/[email protected]", | ||
"@edx/frontend-component-footer": "12.1.2", | ||
"@edx/frontend-enterprise-catalog-search": "4.7.1", | ||
"@edx/frontend-enterprise-hotjar": "1.4.0", | ||
"@edx/frontend-enterprise-logistration": "3.4.0", | ||
"@edx/frontend-enterprise-utils": "3.4.0", | ||
"@edx/frontend-platform": "4.6.3", | ||
"@edx/frontend-component-footer": "12.2.0", | ||
"@edx/frontend-enterprise-catalog-search": "5.0.0", | ||
"@edx/frontend-enterprise-hotjar": "2.0.0", | ||
"@edx/frontend-enterprise-logistration": "4.0.0", | ||
"@edx/frontend-enterprise-utils": "4.0.0", | ||
"@edx/frontend-platform": "5.0.0", | ||
"@edx/paragon": "20.45.4", | ||
"@tanstack/react-query": "4.28.0", | ||
"@tanstack/react-query-devtools": "4.29.0", | ||
"algoliasearch": "4.6.0", | ||
"axios": "0.21.1", | ||
"classnames": "2.2.6", | ||
"color": "3.1.3", | ||
"connected-react-router": "6.9.2", | ||
"core-js": "3.7.0", | ||
"dayjs": "^1.11.9", | ||
"dompurify": "2.3.6", | ||
|
@@ -43,8 +42,8 @@ | |
"react-instantsearch-dom": "6.38.1", | ||
"react-parallax": "3.3.0", | ||
"react-redux": "7.2.2", | ||
"react-router": "4.3.1", | ||
"react-router-dom": "5.2.0", | ||
"react-router": "6.16.0", | ||
"react-router-dom": "6.16.0", | ||
"react-router-hash-link": "2.3.1", | ||
"react-scroll": "1.8.4", | ||
"react-string-replace": "1.1.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Curious: why do we need to add the * at the end?
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.
React Router V6 handles nested routes a little bit differently. So in order to match the descendent routes we have to add this
*
. [ref]