diff --git a/src/features/command/index.tsx b/src/features/command/index.tsx index 371c488..d0461c4 100644 --- a/src/features/command/index.tsx +++ b/src/features/command/index.tsx @@ -118,7 +118,7 @@ const Context = any = any>(props: ParentProps<{ f const Handle: Component<{ command: CommandType }> = (props) => { const { t } = useI18n(); - return + return <> {String(t(props.command.label))} { @@ -131,15 +131,15 @@ const Handle: Component<{ command: CommandType }> = (props) => { [Modifier.Alt]: 'Alt', }; - return <>  + return typeof m === 'number').filter(m => modifier & m)}>{ (m) => <>{modifierMap[m]}+ } {shortcut().key} - ; + ; } } - ; + ; }; export const Command = { Root, Handle, Add, Context };