2016-08-18 11:41:13 +02: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)
|
2016-08-18 11:47:26 +02:00
|
|
|
*
|
2016-08-18 11:41:13 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
import React from 'react';
|
2016-09-25 21:15:17 +02:00
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
import { store } from '../../app';
|
2016-08-18 11:41:13 +02:00
|
|
|
|
2016-10-05 18:13:02 +02:00
|
|
|
import '../../styles/main.scss';
|
|
|
|
|
2016-08-18 11:47:26 +02:00
|
|
|
export default class App extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
2016-08-18 11:41:13 +02:00
|
|
|
|
2016-08-18 11:47:26 +02:00
|
|
|
static propTypes = {
|
|
|
|
children: React.PropTypes.node,
|
|
|
|
};
|
2016-08-18 11:41:13 +02:00
|
|
|
|
2016-08-18 11:47:26 +02:00
|
|
|
render() {
|
|
|
|
return (
|
2016-09-25 21:15:17 +02:00
|
|
|
<Provider store={store}>
|
2016-10-05 13:48:49 +02:00
|
|
|
<div>
|
2016-09-25 21:15:17 +02:00
|
|
|
{React.Children.toArray(this.props.children)}
|
|
|
|
</div>
|
|
|
|
</Provider>
|
2016-08-18 11:47:26 +02:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|