chore: rename tooltip props too

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2023-11-13 13:43:34 +01:00
parent f1b172104d
commit 5602fc274f
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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;
};
@@ -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 = (
<Tooltip enterDelay={1500} title={secondaryTitle}>
{content}