Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#73780)

hermes-seaeye[bot]8a342a000282
diff --git a/apps/desktop/src/app/command-palette/index.tsx b/apps/desktop/src/app/command-palette/index.tsx
index b9e9944685f..0014e4e71f1 100644
--- a/apps/desktop/src/app/command-palette/index.tsx
+++ b/apps/desktop/src/app/command-palette/index.tsx
@@ -243,12 +243,8 @@ const PaletteRow = memo(function PaletteRow({
<Icon className="size-3.5 shrink-0 text-muted-foreground" />
<span className="truncate">{item.label}</span>
{combo && <KbdCombo className="ml-auto opacity-55" combo={combo} size="sm" />}
- {item.to && (
- <ChevronRight className={cn('size-3.5 shrink-0 text-muted-foreground/70', !combo && 'ml-auto')} />
- )}
- {item.active && (
- <Check className={cn('size-3.5 shrink-0 text-primary', !combo && !item.to && 'ml-auto')} />
- )}
+ {item.to && <ChevronRight className={cn('size-3.5 shrink-0 text-muted-foreground/70', !combo && 'ml-auto')} />}
+ {item.active && <Check className={cn('size-3.5 shrink-0 text-primary', !combo && !item.to && 'ml-auto')} />}
</CommandItem>
)
})
diff --git a/apps/desktop/src/app/settings/index.tsx b/apps/desktop/src/app/settings/index.tsx
index 3411a749d19..8dccf3a6b42 100644
--- a/apps/desktop/src/app/settings/index.tsx
+++ b/apps/desktop/src/app/settings/index.tsx
@@ -141,8 +141,9 @@ export function SettingsView({ onClose, onConfigSaved, onMainModelChanged }: Set
}
}
- const navGroups: OverlayNavGroup[] = useMemo(() => [
- ...SECTIONS.map(s => {
+ const navGroups: OverlayNavGroup[] = useMemo(
+ () => [
+ ...SECTIONS.map(s => {
const view = `config:${s.id}` as SettingsViewId
return {
@@ -257,8 +258,9 @@ export function SettingsView({ onClose, onConfigSaved, onMainModelChanged }: Set
label: t.settings.nav.about,
onSelect: () => setActiveView('about')
}
- ]
- , [activeView, keysView, providerView, t, setActiveView, openProviderView, openKeysView])
+ ],
+ [activeView, keysView, providerView, t, setActiveView, openProviderView, openKeysView]
+ )
const navFooter = (
<>