mirror of
https://github.com/strapi/strapi.git
synced 2025-08-09 09:14:49 +00:00

git-subtree-dir: packages/strapi-plugin-settings-manager git-subtree-mainline: 80aa83d8460c95366547e143c74bf79ea6ae69f8 git-subtree-split: cd241c14c6a6239bca279e7accd709ba58e87cc8
33 lines
758 B
JavaScript
33 lines
758 B
JavaScript
/**
|
|
*
|
|
* 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 { Provider } from 'react-redux';
|
|
import { store } from '../../app';
|
|
import appMessages from 'containers/App/messages.json';
|
|
import { define } from '../../i18n';
|
|
define(appMessages);
|
|
|
|
import '../../styles/main.scss';
|
|
|
|
export default class App extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
|
|
static propTypes = {
|
|
children: React.PropTypes.node,
|
|
};
|
|
|
|
render() {
|
|
return (
|
|
<Provider store={store}>
|
|
<div>
|
|
{React.Children.toArray(this.props.children)}
|
|
</div>
|
|
</Provider>
|
|
);
|
|
}
|
|
}
|