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

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
hermes-seaeye[bot] 2026-07-29 02:10:16 +00:00 committed by GitHub
parent 40a53ca031
commit 8a342a0002
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 10 deletions

View file

@ -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>
)
})

View file

@ -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 = (
<>