shlink-web-client/src/App.js

23 lines
568 B
JavaScript
Raw Normal View History

2018-05-13 08:57:47 +02:00
import React from 'react';
import './App.scss';
2018-06-03 13:15:52 +02:00
import { Route, Switch } from 'react-router-dom';
import Home from './common/Home';
2018-05-13 09:48:21 +02:00
import MainHeader from './common/MainHeader';
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 (
<div>
<MainHeader/>
<div className="app">
2018-06-03 13:15:52 +02:00
<Switch>
<Route path="/server/create" component={CreateServer} />
<Route path="/" component={Home} />
</Switch>
2018-06-03 12:57:03 +02:00
</div>
</div>
);
}
2018-05-13 08:57:47 +02:00
}