aboutsummaryrefslogtreecommitdiffstats
path: root/webui/src/App.tsx
blob: 3a5ef0254f131afb98316719a74e5ab0e18e880f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React from 'react';
import { Route, Switch } from 'react-router';

import Layout from './layout';
import BugPage from './pages/bug';
import ListPage from './pages/list';
import NewBugPage from './pages/new/NewBugPage';

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} />
      </Switch>
    </Layout>
  );
}