@vegan-friendly/strapi-plugin-update-lifecycle-trigger
Version:
A plugin for Strapi CMS that automates the triggering of update events for Strapi items, streamlining content and media management.
26 lines (22 loc) • 606 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 { AnErrorOccurred } from '@strapi/helper-plugin';
import pluginId from '../../pluginId';
import MainPage from '../MainPage';
const App = () => {
return (
<div>
<Switch>
<Route path={`/plugins/${pluginId}/`} component={MainPage} exact />
<Route component={AnErrorOccurred} />
</Switch>
</div>
);
};
export default App;