2018-05-13 09:57:47 +03:00
|
|
|
import React from 'react';
|
2018-06-03 14:15:52 +03:00
|
|
|
import { Route, Switch } from 'react-router-dom';
|
2018-06-03 21:12:40 +03:00
|
|
|
import './App.scss';
|
2018-06-03 14:15:52 +03:00
|
|
|
import Home from './common/Home';
|
2018-05-13 10:48:21 +03:00
|
|
|
import MainHeader from './common/MainHeader';
|
2018-06-03 21:12:40 +03:00
|
|
|
import MenuLayout from './common/MenuLayout';
|
2018-06-03 14:15:52 +03:00
|
|
|
import CreateServer from './servers/CreateServer';
|
2018-05-13 09:57:47 +03:00
|
|
|
|
|
|
|
export default class App extends React.Component {
|
2018-06-03 13:57:03 +03:00
|
|
|
render() {
|
|
|
|
return (
|
2018-06-15 22:49:25 +03:00
|
|
|
<div className="container-fluid">
|
2018-06-03 13:57:03 +03:00
|
|
|
<MainHeader/>
|
2018-06-03 21:12:40 +03:00
|
|
|
|
2018-06-03 13:57:03 +03:00
|
|
|
<div className="app">
|
2018-06-03 14:15:52 +03:00
|
|
|
<Switch>
|
2018-06-03 21:12:40 +03:00
|
|
|
<Route exact path="/server/create" component={CreateServer} />
|
|
|
|
<Route exact path="/" component={Home} />
|
2018-07-24 20:17:01 +03:00
|
|
|
<Route path="/server/:serverId" component={MenuLayout} />
|
2018-06-03 14:15:52 +03:00
|
|
|
</Switch>
|
2018-06-03 13:57:03 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2018-05-13 09:57:47 +03:00
|
|
|
}
|