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
|
|
|
|
2020-03-15 11:29:20 +01:00
|
|
|
const App = (MainHeader, Home, MenuLayout, CreateServer, EditServer) => () => (
|
2018-12-17 20:03:36 +01:00
|
|
|
<div className="container-fluid app-container">
|
|
|
|
<MainHeader />
|
2018-06-03 20:12:40 +02:00
|
|
|
|
2018-12-17 20:03:36 +01:00
|
|
|
<div className="app">
|
|
|
|
<Switch>
|
|
|
|
<Route exact path="/" component={Home} />
|
2020-03-15 09:17:33 +01:00
|
|
|
<Route exact path="/server/create" component={CreateServer} />
|
2020-03-15 11:29:20 +01:00
|
|
|
<Route exact path="/server/:serverId/edit" component={EditServer} />
|
2018-12-17 20:03:36 +01:00
|
|
|
<Route path="/server/:serverId" component={MenuLayout} />
|
2019-03-03 11:02:29 +01:00
|
|
|
<Route component={NotFound} />
|
2018-12-17 20:03:36 +01:00
|
|
|
</Switch>
|
2018-08-25 23:39:27 +02:00
|
|
|
</div>
|
2018-12-17 20:03:36 +01:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
|
|
|
|
export default App;
|