35 lines
798 B
JavaScript
Raw Normal View History

/**
*
* 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';
// Containers
2019-02-22 11:11:25 +01:00
import ConfigPage from '../ConfigPage';
import HomePage from '../HomePage';
2019-04-16 18:23:26 +02:00
import { NotFound } from 'strapi-helper-plugin';
function App() {
return (
<div className={pluginId}>
<Switch>
2019-04-16 18:23:26 +02:00
<Route
path={`/plugins/${pluginId}/configurations/:env`}
component={ConfigPage}
exact
/>
<Route path={`/plugins/${pluginId}`} component={HomePage} exact />
2019-04-16 18:23:26 +02:00
<Route component={NotFound} />
</Switch>
</div>
);
}
export default App;