Skip to content

Commit 4259c02

Browse files
committed
Fix Prettier formatting in CommandMenu
1 parent 97fda4e commit 4259c02

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

frontend/src/components/ui/CommandMenu.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,10 @@ export function CommandMenu() {
317317
);
318318

319319
const filteredCommands = useMemo(
320-
() => (mode !== 'commands' ? [] : fuzzySearch(query, visibleCommands, { keys: ['label'], limit: 20 })),
320+
() =>
321+
mode !== 'commands'
322+
? []
323+
: fuzzySearch(query, visibleCommands, { keys: ['label'], limit: 20 }),
321324
[query, visibleCommands, mode],
322325
);
323326

@@ -534,8 +537,7 @@ export function CommandMenu() {
534537
{filteredCommands.map((cmd, index) => {
535538
const Icon = cmd.icon;
536539
const isActive =
537-
(cmd.type === 'view' && activeLeafSet.has(cmd.id)) ||
538-
cmd.id === `theme-${theme}`;
540+
(cmd.type === 'view' && activeLeafSet.has(cmd.id)) || cmd.id === `theme-${theme}`;
539541

540542
return (
541543
<div

0 commit comments

Comments
 (0)