We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbe5bbe commit c31e17cCopy full SHA for c31e17c
dash/extract-meta.js
@@ -727,6 +727,14 @@ function gatherComponents(sources, components = {}) {
727
let props;
728
729
if (propsType) {
730
+ if (
731
+ propsType.valueDeclaration &&
732
+ propsType.valueDeclaration.name &&
733
+ propsType.valueDeclaration.name.elements &&
734
+ propsType.valueDeclaration.name.elements.length
735
+ ) {
736
+ defaultProps = getDefaultPropsValues(propsType.valueDeclaration.name.elements);
737
+ }
738
props = getPropInfo(propsType, defaultProps);
739
} else {
740
defaultProps = getDefaultPropsForClassComponent(type, source);
0 commit comments