2018-12-06 18:03:56 +01: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';
|
|
|
|
|
// Utils
|
2019-02-22 11:11:25 +01:00
|
|
|
import pluginId from '../../pluginId';
|
2018-12-06 18:03:56 +01:00
|
|
|
// Containers
|
2019-02-22 11:11:25 +01:00
|
|
|
import HomePage from '../HomePage';
|
2019-04-16 18:05:12 +02:00
|
|
|
import { NotFound } from 'strapi-helper-plugin';
|
2018-12-06 18:03:56 +01:00
|
|
|
|
2019-02-11 14:57:20 +01:00
|
|
|
function App() {
|
|
|
|
|
return (
|
|
|
|
|
<div className={pluginId}>
|
|
|
|
|
<Switch>
|
|
|
|
|
<Route path={`/plugins/${pluginId}`} component={HomePage} exact />
|
2019-04-16 18:05:12 +02:00
|
|
|
<Route component={NotFound} />
|
2019-02-11 14:57:20 +01:00
|
|
|
</Switch>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
2018-12-06 18:03:56 +01:00
|
|
|
}
|
|
|
|
|
|
2019-02-11 14:57:20 +01:00
|
|
|
export default App;
|