2018-02-20 14:31:05 -08:00
|
|
|
import React from 'react';
|
|
|
|
import { Route, Switch } from 'react-router-dom';
|
2018-03-16 01:06:09 -07:00
|
|
|
import HomePage from 'pages/HomePage'; // or use the provided local homepage
|
2018-03-16 00:52:39 -07:00
|
|
|
import AboutPage from 'pages/AboutPage';
|
2018-03-16 10:34:26 -07:00
|
|
|
import LoginPage from 'pages/LoginPage';
|
2018-03-16 00:52:39 -07:00
|
|
|
import ShowPage from 'pages/ShowPage';
|
2018-03-15 10:54:41 -07:00
|
|
|
import FourOhFourPage from 'containers/FourOhFourPage';
|
2018-02-20 14:31:05 -08:00
|
|
|
|
|
|
|
const App = () => {
|
|
|
|
return (
|
|
|
|
<Switch>
|
2018-02-22 18:05:00 -08:00
|
|
|
<Route exact path='/' component={HomePage} />
|
2018-02-22 15:59:51 -08:00
|
|
|
<Route exact path='/about' component={AboutPage} />
|
|
|
|
<Route exact path='/login' component={LoginPage} />
|
|
|
|
<Route exact path='/:identifier/:claim' component={ShowPage} />
|
|
|
|
<Route exact path='/:claim' component={ShowPage} />
|
|
|
|
<Route component={FourOhFourPage} />
|
2018-02-20 14:31:05 -08:00
|
|
|
</Switch>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default App;
|