2018-05-31 14:29:00 -05: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-11 18:56:17 +01:00
|
|
|
import pluginId from 'pluginId';
|
2018-05-31 14:29:00 -05:00
|
|
|
|
|
|
|
// Containers
|
|
|
|
import ConfigPage from 'containers/ConfigPage';
|
|
|
|
|
|
|
|
function App() {
|
|
|
|
return (
|
|
|
|
<div className={pluginId}>
|
|
|
|
<Switch>
|
|
|
|
<Route path={`/plugins/${pluginId}/configurations/:env`} component={ConfigPage} exact />
|
|
|
|
<Route path={`/plugins/${pluginId}/configurations/`} component={ConfigPage} exact />
|
|
|
|
<Route path={`/plugins/${pluginId}`} component={ConfigPage} exact />
|
|
|
|
</Switch>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default App;
|