fix displayName

konnorrogers/update-react-wrappers
konnorrogers 2023-08-17 17:06:24 -04:00
rodzic cd7016c05e
commit 0ff4dac816
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -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}'