From 3ebdd8c0347103ed7985bc74ea57ec49fcf1d4ae Mon Sep 17 00:00:00 2001 From: ValeraS Date: Tue, 11 Sep 2018 17:15:29 +0300 Subject: [PATCH] Convert the layout's children to a normal prop --- packages/learn/src/layouts/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}