mirror of
https://github.com/strapi/strapi.git
synced 2025-08-15 12:18:38 +00:00
30 lines
644 B
JavaScript
30 lines
644 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 '../../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>
|
||
|
);
|
||
|
}
|
||
|
}
|