core-components,catalog-react: override type for forwardRef components
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -509,7 +509,7 @@ export const SidebarItem = forwardRef<any, SidebarItemProps>((props, ref) => {
|
||||
}
|
||||
|
||||
return <SidebarItemBase {...props} ref={ref} />;
|
||||
});
|
||||
}) as (props: SidebarItemProps) => JSX.Element;
|
||||
|
||||
type SidebarSearchFieldProps = {
|
||||
onSearch: (input: string) => void;
|
||||
|
||||
@@ -87,4 +87,4 @@ export const EntityRefLink = forwardRef<any, EntityRefLinkProps>(
|
||||
link
|
||||
);
|
||||
},
|
||||
);
|
||||
) as (props: EntityRefLinkProps) => JSX.Element;
|
||||
|
||||
Reference in New Issue
Block a user