Skip to content

Commit

Permalink
chore(app): migrate to react-router 7
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Jan 3, 2025
1 parent c47338a commit 1e116a4
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 34 deletions.
74 changes: 42 additions & 32 deletions src/ClientApp/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"react-error-boundary": "^5.0.0",
"react-loading-skeleton": "^3.5.0",
"react-navigator-status": "^0.1.2",
"react-router-dom": "^6.26.2",
"react-router": "^7.1.1",
"reactstrap": "^9.2.3",
"use-immer": "^0.11.0",
"web-vitals": "^4.2.4",
Expand Down
3 changes: 2 additions & 1 deletion src/ClientApp/src/Routes.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { lazy, Suspense, useContext } from 'react';
import { Route, BrowserRouter as Router, Routes } from 'react-router-dom';
import { Route, BrowserRouter as Router, Routes } from 'react-router';
import { AuthContext } from './UserContext';

function AppRoutes() {
Expand All @@ -23,6 +23,7 @@ function AuthenticatedRoutes() {
}
/>
<Route
path="*"
element={
<Suspense fallback={<div />}>
<NotFound />
Expand Down

0 comments on commit 1e116a4

Please sign in to comment.