Merge pull request #26859 from yashoswalyo/origin/catalog-react-fix

feat(EntityRefLink): add disableTooltip prop to control tooltip visibility
This commit is contained in:
Johan Haals
2024-09-27 13:54:38 +02:00
committed by GitHub
3 changed files with 9 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-catalog-react': minor
---
Added a new prop, `disableTooltip` to the `EntityRefLink` component
+1
View File
@@ -456,6 +456,7 @@ export type EntityRefLinkProps = {
title?: string;
children?: React_2.ReactNode;
hideIcon?: boolean;
disableTooltip?: boolean;
} & Omit<LinkProps, 'to'>;
// @public
@@ -39,6 +39,7 @@ export type EntityRefLinkProps = {
title?: string;
children?: React.ReactNode;
hideIcon?: boolean;
disableTooltip?: boolean;
} & Omit<LinkProps, 'to'>;
/**
@@ -55,6 +56,7 @@ export const EntityRefLink = forwardRef<any, EntityRefLinkProps>(
title,
children,
hideIcon,
disableTooltip,
...linkProps
} = props;
const entityRoute = useEntityRoute(props.entityRef);
@@ -65,6 +67,7 @@ export const EntityRefLink = forwardRef<any, EntityRefLinkProps>(
defaultKind={defaultKind}
defaultNamespace={defaultNamespace}
hideIcon={hideIcon}
disableTooltip={disableTooltip}
/>
);