fix displayName

This commit is contained in:
konnorrogers
2023-08-17 17:06:24 -04:00
parent cd7016c05e
commit 0ff4dac816

View File

@@ -57,10 +57,7 @@ components.map(component => {
> = React.JSXElementConstructor<
React.ComponentPropsWithoutRef<ReactComponent> & {
ref?: React.ForwardedRef<Element>;
} &
// Adds { displayName?: string, propTypes?: {} } etc.
Omit<React.FC<ReactComponent>, 'ref'>
>;
> & { Omit<React.FC<ReactComponent>, 'ref'>;
const tagName = '${component.tagName}'