mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 01:21:06 +08:00
Merge pull request #1351 from thomasbertet/fix-1307-invalid-node-type-to-props
Fix invalid prop 'node.type' supplied to 'Props'
This commit is contained in:
commit
152630be57
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user