shlink-web-client/src/App.js

26 lines
700 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';
2018-06-03 13:15:52 +02:00
import Home from './common/Home';
2018-05-13 09:48:21 +02:00
import MainHeader from './common/MainHeader';
2018-06-03 20:12:40 +02:00
import MenuLayout from './common/MenuLayout';
2018-06-03 13:15:52 +02:00
import CreateServer from './servers/CreateServer';
2018-05-13 08:57:47 +02:00
export default class App extends React.Component {
2018-06-03 12:57:03 +02:00
render() {
return (
2018-06-15 21:49:25 +02:00
<div className="container-fluid">
2018-06-03 12:57:03 +02:00
<MainHeader/>
2018-06-03 20:12:40 +02:00
2018-06-03 12:57:03 +02:00
<div className="app">
2018-06-03 13:15:52 +02:00
<Switch>
2018-06-03 20:12:40 +02:00
<Route exact path="/server/create" component={CreateServer} />
<Route exact path="/" component={Home} />
<Route component={MenuLayout} />
2018-06-03 13:15:52 +02:00
</Switch>
2018-06-03 12:57:03 +02:00
</div>
</div>
);
}
2018-05-13 08:57:47 +02:00
}