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);
|
||||
|
||||
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>
|
||||
|
Reference in New Issue
Block a user