From 5102e6d5bb3b7b171b20d4c28ca6b3fe637be575 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Tue, 7 Jan 2025 08:36:38 +0100 Subject: [PATCH] style fix --- src/features/command/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 };