Skip to content

Commit

Permalink
refactor(react-router): upgrade to v7
Browse files Browse the repository at this point in the history
  • Loading branch information
dargmuesli committed Nov 28, 2024
1 parent 894b501 commit cc1f406
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 23 deletions.
18 changes: 1 addition & 17 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"react-dom": "^18.3.1",
"react-markdown": "^9.0.1",
"react-oidc-context": "^3.2.0",
"react-router-dom": "^7.0.0",
"react-router": "^7.0.0",
"swr": "^2.2.5"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './App.css'
import Login from "./Login.tsx";
import {Route, Routes} from "react-router-dom";
import {Route, Routes} from "react-router";
import Home from "./Home.tsx";
import NavBar from "./NavBar.tsx";
import {hasAuthParams, useAuth} from "react-oidc-context";
Expand Down
2 changes: 1 addition & 1 deletion src/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import flipdotLogo from './assets/flipdot.svg'
import './App.css'
import {useNavigate} from "react-router-dom";
import {useNavigate} from "react-router";
import {useEffect} from "react";
import {useAuth} from "react-oidc-context";

Expand Down
2 changes: 1 addition & 1 deletion src/NavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fdLogo from './assets/fd.svg';
import "./NavBar.css";
import {Link} from "react-router-dom";
import {Link} from "react-router";
import Spinner from "./Spinner.tsx";
import {useAuth} from "react-oidc-context";

Expand Down
2 changes: 1 addition & 1 deletion src/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {useNavigate} from "react-router-dom";
import {useNavigate} from "react-router";
import {useEffect} from "react";
import {useAuth} from "react-oidc-context";

Expand Down
2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import './main.css'
import App from './App.tsx'

import * as Sentry from "@sentry/react";
import {BrowserRouter} from "react-router-dom";
import {BrowserRouter} from "react-router";
import {AuthProvider, AuthProviderProps} from "react-oidc-context";
import AuthenticatedSWRConfig from "./AuthenticatedSWRConfig.tsx";
import {WebStorageStateStore} from "oidc-client-ts";
Expand Down

0 comments on commit cc1f406

Please sign in to comment.