mirror of
https://github.com/strapi/strapi.git
synced 2025-11-04 11:54:10 +00:00
28 lines
630 B
JavaScript
Executable File
28 lines
630 B
JavaScript
Executable File
/**
|
|
*
|
|
* 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';
|
|
// Utils
|
|
import pluginId from '../../pluginId';
|
|
// Containers
|
|
import HomePage from '../HomePage';
|
|
|
|
function App() {
|
|
return (
|
|
<div className={pluginId}>
|
|
<Switch>
|
|
<Route path={`/plugins/${pluginId}`} component={HomePage} exact />
|
|
<Route component={NotFound} />
|
|
</Switch>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default App;
|