feat(EntityRefLink): add disableTooltip prop to control tooltip visibility
Signed-off-by: Yash Oswal <yoswal@redhat.com>
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-catalog-react': minor
|
||||
---
|
||||
|
||||
Added a new prop, `disableTooltip` to the `EntityRefLink` component
|
||||
@@ -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}
|
||||
/>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user