Convert the layout's children to a normal prop
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
bb9ddd1a40
commit
3ebdd8c034
@ -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>
|
||||||
|
Reference in New Issue
Block a user