diff options
author | Michael Muré <batolettre@gmail.com> | 2022-03-01 20:57:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-01 20:57:43 +0100 |
commit | 2dbe0fd5fc3f3f74848df9499cddf32663e771ee (patch) | |
tree | fa162059dd8732ab3d6b22fb6df1fa10a353985f /webui/src/App.tsx | |
parent | 08e00b4eb8f8cf8e614cae8dee46862a398f465d (diff) | |
parent | 8229e80d1eeee73bd4eab46c90d9f97f802ab063 (diff) | |
download | git-bug-2dbe0fd5fc3f3f74848df9499cddf32663e771ee.tar.gz |
Merge pull request #750 from MichaelMure/sandhose/webui-upgrade
Upgrade webui dependencies
Diffstat (limited to 'webui/src/App.tsx')
-rw-r--r-- | webui/src/App.tsx | 17 |
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> ); } |