mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-29 05:00:43 +10:00
Remove container stuff from PageLayout (and pass them as props)
This commit is contained in:
parent
269dd8306e
commit
44c71803f3
1 changed files with 1 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue