2021-03-19 19:04:22 +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';
|
2021-03-20 00:54:18 +01:00
|
|
|
import { Provider } from 'react-redux';
|
2021-11-10 19:51:00 +01:00
|
|
|
import { CheckPagePermissions } from '@strapi/helper-plugin';
|
2021-03-20 00:54:18 +01:00
|
|
|
|
2021-11-10 19:51:00 +01:00
|
|
|
import pluginPermissions from '../../permissions';
|
|
|
|
import Header from '../../components/Header';
|
2021-03-20 00:54:18 +01:00
|
|
|
import { store } from "../../helpers/configureStore";
|
|
|
|
import ConfigPage from '../ConfigPage';
|
2021-03-19 19:04:22 +01:00
|
|
|
|
|
|
|
const App = () => {
|
|
|
|
return (
|
2021-11-10 19:51:00 +01:00
|
|
|
<CheckPagePermissions permissions={pluginPermissions.settings}>
|
|
|
|
<Provider store={store}>
|
|
|
|
<Header />
|
|
|
|
<ConfigPage />
|
|
|
|
</Provider>
|
|
|
|
</CheckPagePermissions>
|
2021-03-19 19:04:22 +01:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default App;
|