2018-02-08 12:01:06 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* This component is the skeleton around the actual pages, and should only
|
|
|
|
* contain code that should be seen on all pages. (e.g. navigation bar)
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import { Switch, Route } from 'react-router-dom';
|
|
|
|
|
2019-02-22 11:11:25 +01:00
|
|
|
import pluginId from '../../pluginId';
|
2018-02-08 12:01:06 +01:00
|
|
|
|
|
|
|
// Containers
|
2019-02-22 11:11:25 +01:00
|
|
|
import ConfigPage from '../ConfigPage';
|
|
|
|
import HomePage from '../HomePage';
|
|
|
|
import NotFoundPage from '../NotFoundPage';
|
2018-02-08 12:01:06 +01:00
|
|
|
|
2018-02-23 11:06:30 +01:00
|
|
|
function App() {
|
|
|
|
return (
|
|
|
|
<div className={pluginId}>
|
|
|
|
<Switch>
|
2018-02-28 10:50:07 +01:00
|
|
|
<Route path={`/plugins/${pluginId}/configurations/:env`} component={ConfigPage} exact />
|
2018-02-23 11:06:30 +01:00
|
|
|
<Route path={`/plugins/${pluginId}`} component={HomePage} exact />
|
|
|
|
<Route component={NotFoundPage} />
|
|
|
|
</Switch>
|
|
|
|
</div>
|
2018-02-08 12:01:06 +01:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2018-02-23 11:06:30 +01:00
|
|
|
export default App;
|