File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
packages/web/src/views/Forms/EventForm Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 11import React from "react" ;
22import { Copy } from "@phosphor-icons/react" ;
3+ import { getMetaKey } from "@web/common/utils/shortcut.util" ;
4+ import { Text } from "@web/components/Text" ;
35import TooltipIconButton from "@web/components/TooltipIconButton/TooltipIconButton" ;
46
57export 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 } }
You can’t perform that action at this time.
0 commit comments