diff --git a/plugins/catalog-react/api-report.md b/plugins/catalog-react/api-report.md index e35f1cd64a..e84fa9815c 100644 --- a/plugins/catalog-react/api-report.md +++ b/plugins/catalog-react/api-report.md @@ -197,7 +197,7 @@ export const EntityDisplayName: (props: EntityDisplayNameProps) => JSX.Element; export type EntityDisplayNameProps = { entityRef: Entity | CompoundEntityRef | string; hideIcon?: boolean; - noTooltip?: boolean; + disableTooltip?: boolean; defaultKind?: string; defaultNamespace?: string; }; diff --git a/plugins/catalog-react/src/components/EntityDisplayName/EntityDisplayName.tsx b/plugins/catalog-react/src/components/EntityDisplayName/EntityDisplayName.tsx index e1642f8e4e..de55f46391 100644 --- a/plugins/catalog-react/src/components/EntityDisplayName/EntityDisplayName.tsx +++ b/plugins/catalog-react/src/components/EntityDisplayName/EntityDisplayName.tsx @@ -50,7 +50,7 @@ const useStyles = makeStyles( export type EntityDisplayNameProps = { entityRef: Entity | CompoundEntityRef | string; hideIcon?: boolean; - noTooltip?: boolean; + disableTooltip?: boolean; defaultKind?: string; defaultNamespace?: string; }; @@ -63,7 +63,7 @@ export type EntityDisplayNameProps = { export const EntityDisplayName = ( props: EntityDisplayNameProps, ): JSX.Element => { - const { entityRef, hideIcon, noTooltip, defaultKind, defaultNamespace } = + const { entityRef, hideIcon, disableTooltip, defaultKind, defaultNamespace } = props; const classes = useStyles(); @@ -88,7 +88,7 @@ export const EntityDisplayName = ( ); // Optionally, a tooltip as the outermost layer - if (secondaryTitle && !noTooltip) { + if (secondaryTitle && !disableTooltip) { content = ( {content}