shlink-web-client/src/App.js

23 lines
695 B
JavaScript
Raw Normal View History

2018-05-13 08:57:47 +02:00
import React from 'react';
2018-06-03 13:15:52 +02:00
import { Route, Switch } from 'react-router-dom';
2018-06-03 20:12:40 +02:00
import './App.scss';
2019-03-03 11:02:29 +01:00
import NotFound from './common/NotFound';
2018-05-13 08:57:47 +02:00
const App = (MainHeader, Home, MenuLayout, CreateServer, EditServer) => () => (
<div className="container-fluid app-container">
<MainHeader />
2018-06-03 20:12:40 +02:00
<div className="app">
<Switch>
<Route exact path="/" component={Home} />
<Route exact path="/server/create" component={CreateServer} />
<Route exact path="/server/:serverId/edit" component={EditServer} />
<Route path="/server/:serverId" component={MenuLayout} />
2019-03-03 11:02:29 +01:00
<Route component={NotFound} />
</Switch>
</div>
</div>
);
export default App;