aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/App.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'webui/src/App.tsx')
-rw-r--r--webui/src/App.tsx17
1 files changed, 8 insertions, 9 deletions
diff --git a/webui/src/App.tsx b/webui/src/App.tsx
index 04da655a..4bf09606 100644
--- a/webui/src/App.tsx
+++ b/webui/src/App.tsx
@@ -1,5 +1,4 @@
-import React from 'react';
-import { Route, Switch } from 'react-router';
+import { Route, Routes } from 'react-router-dom';
import Layout from './components/Header';
import BugPage from './pages/bug';
@@ -11,13 +10,13 @@ import NotFoundPage from './pages/notfound/NotFoundPage';
export default function App() {
return (
<Layout>
- <Switch>
- <Route path="/" exact component={ListPage} />
- <Route path="/new" exact component={NewBugPage} />
- <Route path="/bug/:id" exact component={BugPage} />
- <Route path="/user/:id" exact component={IdentityPage} />
- <Route component={NotFoundPage} />
- </Switch>
+ <Routes>
+ <Route path="/" element={<ListPage />} />
+ <Route path="/new" element={<NewBugPage />} />
+ <Route path="/bug/:id" element={<BugPage />} />
+ <Route path="/user/:id" element={<IdentityPage />} />
+ <Route element={<NotFoundPage />} />
+ </Routes>
</Layout>
);
}