Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/shared/components/lobeProviderIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ import SenseNovaColorIcon from "@lobehub/icons/es/SenseNova/components/Color";
import SenseNovaMonoIcon from "@lobehub/icons/es/SenseNova/components/Mono";
import StabilityColorIcon from "@lobehub/icons/es/Stability/components/Color";
import StabilityMonoIcon from "@lobehub/icons/es/Stability/components/Mono";
import StepfunColorIcon from "@lobehub/icons/es/Stepfun/components/Color";
// Stepfun has no Color component in the installed @lobehub/icons version; use Mono as fallback
import StepfunMonoIcon from "@lobehub/icons/es/Stepfun/components/Mono";
import SunoMonoIcon from "@lobehub/icons/es/Suno/components/Mono";
import TavilyColorIcon from "@lobehub/icons/es/Tavily/components/Color";
Expand Down Expand Up @@ -281,7 +281,7 @@ const LOBE_ICON_COMPONENTS = {
SenseNova: { mono: SenseNovaMonoIcon, color: SenseNovaColorIcon },
Snowflake: { mono: SnowflakeMonoIcon, color: SnowflakeColorIcon },
Stability: { mono: StabilityMonoIcon, color: StabilityColorIcon },
Stepfun: { mono: StepfunMonoIcon, color: StepfunColorIcon },
Stepfun: { mono: StepfunMonoIcon, color: StepfunMonoIcon },

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Since the LobeIconEntry type defines color as optional (color?: LobeIconComponent) and getLobeProviderIcon automatically falls back to mono when color is undefined, we can simply omit the color property for Stepfun instead of duplicating StepfunMonoIcon. This is consistent with other mono-only icons in this map (e.g., Suno, Ai21, Anthropic).

Suggested change
Stepfun: { mono: StepfunMonoIcon, color: StepfunMonoIcon },
Stepfun: { mono: StepfunMonoIcon },

Suno: { mono: SunoMonoIcon },
Tavily: { mono: TavilyMonoIcon, color: TavilyColorIcon },
Tencent: { mono: TencentMonoIcon, color: TencentColorIcon },
Expand Down