From 5602fc274f8b749a7a86a14bcec84aea7e599652 Mon Sep 17 00:00:00 2001 From: blam Date: Mon, 13 Nov 2023 13:43:34 +0100 Subject: [PATCH] chore: rename tooltip props too Signed-off-by: blam --- plugins/catalog-react/api-report.md | 2 +- .../src/components/EntityDisplayName/EntityDisplayName.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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}