From 44c71803f33a79afd51c8358e1d41f1c26f84942 Mon Sep 17 00:00:00 2001 From: Vesa Luusua Date: Tue, 11 Jul 2017 17:54:05 +0300 Subject: [PATCH] Remove container stuff from PageLayout (and pass them as props) --- src/components/PageLayout/PageLayout.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/PageLayout/PageLayout.js b/src/components/PageLayout/PageLayout.js index 41de0c66..490b696b 100644 --- a/src/components/PageLayout/PageLayout.js +++ b/src/components/PageLayout/PageLayout.js @@ -1,5 +1,4 @@ import React, { Component, PropTypes } from 'react'; -import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { withRouter } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; @@ -98,9 +97,4 @@ PageLayout.propTypes = { }).isRequired, }; -const mapStateToProps = state => { - const { authInfoError, logoutError } = state.Auth; - return { authInfoError, logoutError }; -}; - -export default connect(mapStateToProps)(withRouter(PageLayout)); +export default withRouter(PageLayout);