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