strapi-plugin-config-sync/admin/src/containers/App/index.js

31 lines
813 B
JavaScript
Raw Normal View History

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