Skip to content

Commit 7b5af8f

Browse files
committed
fix(web): Duplicate shortcut tooltip using wrong label
1 parent f5fd5d7 commit 7b5af8f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import React from "react";
22
import { Copy } from "@phosphor-icons/react";
3+
import { getMetaKey } from "@web/common/utils/shortcut.util";
4+
import { Text } from "@web/components/Text";
35
import TooltipIconButton from "@web/components/TooltipIconButton/TooltipIconButton";
46

57
export const DuplicateButton = ({ onClick }: { onClick: () => void }) => {
@@ -8,7 +10,11 @@ export const DuplicateButton = ({ onClick }: { onClick: () => void }) => {
810
icon={<Copy />}
911
buttonProps={{ "aria-label": "Duplicate Event [Meta+D]" }}
1012
tooltipProps={{
11-
shortcut: "Meta+D",
13+
shortcut: (
14+
<Text size="s" style={{ display: "flex", alignItems: "center" }}>
15+
{getMetaKey()} + D
16+
</Text>
17+
),
1218
description: "Duplicate Event",
1319
onClick,
1420
}}

0 commit comments

Comments
 (0)