Skip to content

Commit e86fb56

Browse files
committed
refactor: rename tooltipContent to tooltip
1 parent c6cca88 commit e86fb56

8 files changed

Lines changed: 11 additions & 11 deletions

File tree

packages/web/src/views/Forms/ActionsMenu/MenuItem.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ export interface MenuItemProps
1515
* (`"Delete"`) or a combo as a key array (`["Mod", "D"]`). If omitted (or
1616
* empty), the tooltip is disabled.
1717
*/
18-
tooltipContent?: string | string[];
18+
tooltip?: string | string[];
1919
bgColor: string;
2020
}
2121

2222
const MenuItem: React.FC<MenuItemProps> = ({
23-
tooltipContent,
23+
tooltip,
2424
children,
2525
onClick,
2626
bgColor,
@@ -91,7 +91,7 @@ const MenuItem: React.FC<MenuItemProps> = ({
9191
);
9292

9393
// No keys to show -> render the bare button (no empty tooltip surface).
94-
if (!tooltipContent || tooltipContent.length === 0) {
94+
if (!tooltip || tooltip.length === 0) {
9595
return button;
9696
}
9797

@@ -103,7 +103,7 @@ const MenuItem: React.FC<MenuItemProps> = ({
103103
>
104104
<TooltipTrigger asChild>{button}</TooltipTrigger>
105105
<TooltipContent>
106-
<ShortcutKeys keys={tooltipContent} />
106+
<ShortcutKeys keys={tooltip} />
107107
</TooltipContent>
108108
</Tooltip>
109109
);

packages/web/src/views/Forms/EventForm/DeleteMenuButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const DeleteMenuButton: React.FC<Props> = ({ onClick, bgColor }) => {
1313
onClick={onClick}
1414
aria-label="Delete Event"
1515
bgColor={bgColor}
16-
tooltipContent="Delete"
16+
tooltip="Delete"
1717
>
1818
<Trash size={16} />
1919
<span>Delete</span>

packages/web/src/views/Forms/EventForm/DuplicateMenuButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const DuplicateMenuButton: React.FC<Props> = ({
1818
onClick={onClick}
1919
aria-label={label}
2020
bgColor={bgColor}
21-
tooltipContent={["Mod", "D"]}
21+
tooltip={["Mod", "D"]}
2222
>
2323
<Copy size={16} />
2424
<span>{label}</span>

packages/web/src/views/Forms/EventForm/MigrateAboveMenuButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const MigrateAboveMenuButton: React.FC<Props> = ({
1818
onClick={onClick}
1919
aria-label={tooltipText}
2020
bgColor={bgColor}
21-
tooltipContent={["Control", "Meta", "ArrowUp"]}
21+
tooltip={["Control", "Meta", "ArrowUp"]}
2222
>
2323
<ArrowUpIcon size={14} />
2424
<span>{tooltipText}</span>

packages/web/src/views/Forms/EventForm/MigrateBackwardMenuButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const MigrateBackwardMenuButton: React.FC<Props> = ({
1818
onClick={onClick}
1919
aria-label={tooltipText}
2020
bgColor={bgColor}
21-
tooltipContent={["Control", "Meta", "ArrowLeft"]}
21+
tooltip={["Control", "Meta", "ArrowLeft"]}
2222
>
2323
<ArrowLeftIcon size={14} />
2424
<span>{tooltipText}</span>

packages/web/src/views/Forms/EventForm/MigrateBelowMenuButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const MigrateBelowMenuButton: React.FC<Props> = ({
1818
onClick={onClick}
1919
aria-label={tooltipText}
2020
bgColor={bgColor}
21-
tooltipContent={["Control", "Meta", "ArrowDown"]}
21+
tooltip={["Control", "Meta", "ArrowDown"]}
2222
>
2323
<ArrowDownIcon size={14} />
2424
<span>{tooltipText}</span>

packages/web/src/views/Forms/EventForm/MigrateForwardMenuButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const MigrateForwardMenuButton: React.FC<Props> = ({
1818
onClick={onClick}
1919
aria-label={tooltipText}
2020
bgColor={bgColor}
21-
tooltipContent={["Control", "Meta", "ArrowRight"]}
21+
tooltip={["Control", "Meta", "ArrowRight"]}
2222
>
2323
<ArrowRightIcon size={14} />
2424
<span>{tooltipText}</span>

packages/web/src/views/Forms/EventForm/MoveToSidebarMenuButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const MoveToSidebarMenuButton: React.FC<Props> = ({
1818
bgColor={bgColor}
1919
onClick={onClick}
2020
aria-label={label}
21-
tooltipContent={["Control", "Meta", "ArrowLeft"]}
21+
tooltip={["Control", "Meta", "ArrowLeft"]}
2222
>
2323
<ArrowLeftIcon size={14} />
2424
<span>{label}</span>

0 commit comments

Comments
 (0)