spee.ch/client/app.js

24 lines
821 B
JavaScript
Raw Normal View History

2018-03-20 20:23:39 +01:00
import dynamicImport from 'utils/dynamicImport.js';
import React from 'react';
import { Route, Switch } from 'react-router-dom';
import AboutPage from 'pages/AboutPage';
2018-03-16 18:34:26 +01:00
import LoginPage from 'pages/LoginPage';
import ShowPage from 'pages/ShowPage';
import FourOhFourPage from 'containers/FourOhFourPage';
2018-03-20 20:23:39 +01:00
const HomePage = dynamicImport('pages/HomePage'); // or use the provided local homepage
const App = () => {
return (
<Switch>
<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} />
</Switch>
);
};
export default App;