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

29 lines
723 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';
import { Switch, Route } from 'react-router-dom';
import { NotFound } from 'strapi-helper-plugin';
2021-03-20 00:54:18 +01:00
import { Provider } from 'react-redux';
import { store } from "../../helpers/configureStore";
import pluginId from '../../helpers/pluginId';
import ConfigPage from '../ConfigPage';
2021-03-19 19:04:22 +01:00
const App = () => {
return (
2021-03-20 00:54:18 +01:00
<Provider store={store}>
2021-03-19 19:04:22 +01:00
<Switch>
2021-03-20 00:54:18 +01:00
<Route path={`/plugins/${pluginId}`} component={ConfigPage} exact />
2021-03-19 19:04:22 +01:00
<Route component={NotFound} />
</Switch>
2021-03-20 00:54:18 +01:00
</Provider>
2021-03-19 19:04:22 +01:00
);
};
export default App;