aboutsummaryrefslogblamecommitdiffstats
path: root/webui/src/App.tsx
blob: 4c81913cbdd5b346f62f64830ae34854af22a2d0 (plain) (tree)
1
2
3
4
5
6
7
8
9
                          
                                             
 
                                         

                                    
                                                
                                                         
 
                               
          
            
              
                                                     
                                                          
                                                           
                                          
               
             

    
import React from 'react';
import { Route, Switch } from 'react-router';

import Layout from './components/Header';
import BugPage from './pages/bug';
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 component={NotFoundPage} />
      </Switch>
    </Layout>
  );
}