Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
console.error(
`Prop ${
propType.key
} has no type; this usually indicates invalid propType or defaultProps config`
);
return null;
}
const name = propType.kind === 'spread' ? '...' : convert(propType.key);
const OverrideComponent = overrides[name];
const commonProps = {
components,
name,
key: name,
required: !propType.optional,
type: getKind(propType.value),
defaultValue: propType.default && convert(propType.default),
description: description,
shouldCollapse: shouldCollapseProps,
typeValue: propType.value
};
return overrides[name] ? (
) : (
);
};
console.error(
`Prop ${
propType.key
} has no type; this usually indicates invalid propType or defaultProps config`
);
return null;
}
const name = propType.kind === 'spread' ? '...' : convert(propType.key);
const OverrideComponent = overrides[name];
const commonProps = {
components,
name,
key: name,
required: !propType.optional,
type: getKind(propType.value),
defaultValue: propType.default && convert(propType.default),
description,
shouldCollapse: shouldCollapseProps,
typeValue: propType.value
};
return overrides[name] ? : ;
};
console.error(
`Prop ${
propType.key
} has no type; this usually indicates invalid propType or defaultProps config`,
);
return null;
}
const name = convert(propType.key);
const OverrideComponent = overrides[name];
const commonProps = {
components,
name,
key: convert(propType.key),
required: !propType.optional,
type: getKind(propType.value),
defaultValue: propType.default && convert(propType.default),
description: description,
shouldCollapse: shouldCollapseProps,
typeValue: propType.value,
};
return (
overrides[name] ? :
);
};