mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-05 15:57:24 +03:00
25 lines
725 B
JavaScript
25 lines
725 B
JavaScript
import React from 'react';
|
|
import { Route, Switch } from 'react-router-dom';
|
|
import './App.scss';
|
|
import Home from './common/Home';
|
|
import MainHeader from './common/MainHeader';
|
|
import MenuLayout from './common/MenuLayout';
|
|
import CreateServer from './servers/CreateServer';
|
|
|
|
export default class App extends React.Component {
|
|
render() {
|
|
return (
|
|
<div className="container-fluid">
|
|
<MainHeader/>
|
|
|
|
<div className="app">
|
|
<Switch>
|
|
<Route exact path="/server/create" component={CreateServer} />
|
|
<Route exact path="/" component={Home} />
|
|
<Route path="/server/:serverId" component={MenuLayout} />
|
|
</Switch>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
}
|