blob: 87cb08fb2e81cda7e652f2b46a035f92b05c755f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import { Route, Switch } from 'react-router';
import Layout from './components/Header';
import BugPage from './pages/bug';
import IdentityPage from './pages/identity';
import ListPage from './pages/list';
import NewBugPage from './pages/new/NewBugPage';
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>
</Layout>
);
}
|