From fed4eeb2b97cbb2634e28d1f28aeda9b34a97e5c Mon Sep 17 00:00:00 2001 From: dongmucat <1127093059@qq.com> Date: Tue, 12 May 2026 14:08:29 +0800 Subject: [PATCH] fix(web): make quick start tab icons exhaustive --- web/src/shared/components/landing-quick-start.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/web/src/shared/components/landing-quick-start.tsx b/web/src/shared/components/landing-quick-start.tsx index 9ac92437..d290dbb0 100644 --- a/web/src/shared/components/landing-quick-start.tsx +++ b/web/src/shared/components/landing-quick-start.tsx @@ -1,6 +1,7 @@ import { useState, useMemo } from 'react' import { useTranslation } from 'react-i18next' import { Bot, Check, Copy, Terminal, UserRound } from 'lucide-react' +import type { LucideIcon } from 'lucide-react' import { useCopyToClipboard } from '@/shared/lib/clipboard' type LandingQuickStartTabId = 'agent' | 'human' | 'cli' @@ -12,6 +13,12 @@ interface LandingQuickStartTab { command: string } +const tabIcons: Record = { + agent: Bot, + human: UserRound, + cli: Terminal, +} + /** * Get the base URL for the application. * Prefers the runtime config if set and not localhost. @@ -115,7 +122,7 @@ export function LandingQuickStartSection() { > {tabs.map((tab) => { const isActive = tab.id === currentTab.id - const Icon = tab.id === 'agent' ? Bot : tab.id === 'human' ? UserRound : Terminal + const Icon = tabIcons[tab.id] return (