From 0bfb068b6fa2a75b7346534359956f4850d5b75b Mon Sep 17 00:00:00 2001 From: Thomas Bertet Date: Fri, 23 Jun 2017 11:16:40 +0200 Subject: [PATCH] fix invalid prop node.type to Props --- addons/info/src/components/Props.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/info/src/components/Props.js b/addons/info/src/components/Props.js index 71cb3d6c0ab..b973d5d1093 100644 --- a/addons/info/src/components/Props.js +++ b/addons/info/src/components/Props.js @@ -61,10 +61,7 @@ Props.defaultProps = { }; Props.propTypes = { - node: PropTypes.shape({ - props: PropTypes.object, - type: PropTypes.node.isRequired, - }).isRequired, + node: PropTypes.node.isRequired, singleLine: PropTypes.bool, maxPropsIntoLine: PropTypes.number.isRequired, maxPropObjectKeys: PropTypes.number.isRequired,