mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-24 05:29:51 +03:00
fix things
This commit is contained in:
parent
0e16fcbe5e
commit
26440211ab
@ -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>
|
||||
|
@ -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] => {
|
||||
|
Loading…
Reference in New Issue
Block a user