shlink-web-client/src/App.js

24 lines
680 B
JavaScript
Raw Normal View History

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 function App() {
return (
<div className="container-fluid app-container">
<MainHeader />
2018-06-03 21:12:40 +03:00
<div className="app">
<Switch>
<Route exact path="/server/create" component={CreateServer} />
<Route exact path="/" component={Home} />
<Route path="/server/:serverId" component={MenuLayout} />
</Switch>
2018-06-03 13:57:03 +03:00
</div>
</div>
);
2018-05-13 09:57:47 +03:00
}