soupette 7313cbdb41 Init media library.
Created OLD folder.
Fix load plugin when no Initializer is provided.

Signed-off-by: soupette <cyril.lpz@gmail.com>
2020-02-12 21:55:56 +01:00

33 lines
796 B
JavaScript

/**
*
* 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';
import { NotFound } from 'strapi-helper-plugin';
import pluginId from '../../pluginId';
// Containers
import ConfigPage from '../ConfigPage';
import HomePage from '../HomePage';
function App() {
return (
<div className={pluginId}>
<Switch>
<Route
path={`/plugins/${pluginId}/configurations/:env`}
component={ConfigPage}
exact
/>
<Route path={`/plugins/${pluginId}`} component={HomePage} exact />
<Route component={NotFound} />
</Switch>
</div>
);
}
export default App;