Convert the layout's children to a normal prop

This commit is contained in:
ValeraS
2018-09-11 17:15:29 +03:00
committed by Mrugesh Mohapatra
parent bb9ddd1a40
commit 3ebdd8c034

View File

@ -48,7 +48,7 @@ const mapDispatchToProps = dispatch =>
bindActionCreators({ fetchUser }, dispatch);
const propTypes = {
children: PropTypes.func,
children: PropTypes.object,
fetchUser: PropTypes.func.isRequired,
theme: PropTypes.string
};
@ -97,7 +97,7 @@ class Layout extends PureComponent {
/>
<Header />
<div className={'app-wrapper ' + theme}>
<main>{children()}</main>
<main>{children}</main>
</div>
<DonationModal />
</Fragment>