2018-02-20 23:31:05 +01:00
|
|
|
import React from 'react';
|
|
|
|
import { Route, Switch } from 'react-router-dom';
|
2018-02-23 03:05:00 +01:00
|
|
|
import HomePage from 'components/HomePage';
|
2018-02-23 00:59:51 +01:00
|
|
|
import AboutPage from 'components/AboutPage';
|
|
|
|
import LoginPage from 'containers/LoginPage';
|
|
|
|
import ShowPage from 'containers/ShowPage';
|
|
|
|
import FourOhFourPage from 'components/FourOhFourPage';
|
2018-02-20 23:31:05 +01:00
|
|
|
|
|
|
|
const App = () => {
|
|
|
|
return (
|
|
|
|
<Switch>
|
2018-02-23 03:05:00 +01:00
|
|
|
<Route exact path='/' component={HomePage} />
|
2018-02-23 00:59:51 +01: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 23:31:05 +01:00
|
|
|
</Switch>
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default App;
|