diff --git a/src/components/page/www/page.jsx b/src/components/page/www/page.jsx index 070f7e1dc..2f482c61a 100644 --- a/src/components/page/www/page.jsx +++ b/src/components/page/www/page.jsx @@ -1,4 +1,5 @@ var React = require('react'); +var connect = require('react-redux').connect; var classNames = require('classnames'); var Navigation = require('../../navigation/www/navigation.jsx'); @@ -13,17 +14,24 @@ var Page = React.createClass({ return (
{this.props.children}
); } }); -module.exports = Page; +var mapStateToProps = function (state) { + return { + layout: state.layout + }; +}; + +var ConnectedPage = connect(mapStateToProps)(Page); +module.exports = ConnectedPage;