Skip to content

Commit

Permalink
fix: avoid duplicate tooltip for disabled rename header
Browse files Browse the repository at this point in the history
Signed-off-by: Mason Hu <[email protected]>
  • Loading branch information
mas-who committed Nov 22, 2024
1 parent bd6df27 commit c32ab33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RenameHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const RenameHeader: FC<Props> = ({
<li
className="p-heading--4 u-no-margin--bottom name continuous-breadcrumb u-truncate"
onClick={toggleRename}
title={`Rename ${name}`}
title={canRename ? `Rename ${name}` : ""}
>
<Tooltip
message={!canRename && renameDisabledReason}
Expand Down

0 comments on commit c32ab33

Please sign in to comment.