diff --git a/packages/learn/src/layouts/index.js b/packages/learn/src/layouts/index.js index 0ce387b6b1..5324c5df84 100644 --- a/packages/learn/src/layouts/index.js +++ b/packages/learn/src/layouts/index.js @@ -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 { />
-
{children()}
+
{children}