Convert the layout's children to a normal prop

This commit is contained in:
ValeraS
2018-09-27 20:06:11 +05:30
committed by Mrugesh Mohapatra
parent bb9ddd1a40
commit 3ebdd8c034
+2 -2
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>