diff --git a/taker-frontend/package.json b/taker-frontend/package.json index 3bef11d..835558a 100644 --- a/taker-frontend/package.json +++ b/taker-frontend/package.json @@ -20,7 +20,6 @@ "@types/node": "^16.11.9", "@types/react": "^17.0.36", "@types/react-dom": "^17.0.11", - "@types/react-router-dom": "5.3.2", "@vitejs/plugin-react": "^1.0.9", "framer-motion": "^4", "next": "^12.0.4", @@ -29,7 +28,7 @@ "react-dom": "^17.0.2", "react-icons": "^4.3.1", "react-refresh": "^0.11.0", - "react-router-dom": "5.3.0", + "react-router-dom": "6.0.2", "react-scripts": "4.0.3", "react-sse-hooks": "^1.0.5", "react-use-websocket": "^2.9.1", diff --git a/taker-frontend/src/App.tsx b/taker-frontend/src/App.tsx index 8c24547..7857393 100644 --- a/taker-frontend/src/App.tsx +++ b/taker-frontend/src/App.tsx @@ -12,7 +12,7 @@ import { import * as React from "react"; import { useEffect, useState } from "react"; import { useAsync } from "react-async"; -import { Route, Switch } from "react-router-dom"; +import { Route, Routes } from "react-router-dom"; import { useEventSource } from "react-sse-hooks"; import useWebSocket from "react-use-websocket"; import { useBackendMonitor } from "./components/BackendMonitor"; @@ -134,12 +134,11 @@ export const App = () => { <>