fix things

This commit is contained in:
Kiril Videlov 2023-03-27 17:19:05 +02:00 committed by Nikita Galaiko
parent 0e16fcbe5e
commit 26440211ab
2 changed files with 3 additions and 3 deletions

View File

@ -101,7 +101,7 @@
action: {
component: Replay
},
icon: 'RewindIcon',
icon: RewindIcon,
visible: 'replay history'.includes(userInput?.toLowerCase())
}
]
@ -237,7 +237,7 @@
: ''} flex cursor-default items-center rounded-lg p-2 px-2 outline-none gap-2"
>
<span class="quick-command-icon">
{command.icon}
<svelte:component this={command.icon} />
</span>
<span class="quick-command flex-grow">{command.title}</span>
<span class="quick-command-key ">{command.description}</span>

View File

@ -16,13 +16,13 @@ export type Command = {
action: Action;
selected: boolean;
visible: boolean;
icon: ComponentType;
};
export type CommandGroup = {
name: string;
description?: string;
visible: boolean;
commands: Command[];
icon: ComponentType;
};
export const firstVisibleCommand = (commandGroups: CommandGroup[]): [number, number] => {