From 9536c2c927c4288f81d73eb4c57ae75b0d700c46 Mon Sep 17 00:00:00 2001 From: sp mac bookpro 2605 Date: Tue, 26 May 2026 00:09:23 +0800 Subject: [PATCH] refactor(constants): apply standard naming convention for placeholder image constants --- src/constants.ts | 2 +- src/pages/AgentEditor.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index d14d8d7..4bb07c5 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1 +1 @@ -export const PLACEHOLDER_40X40_GRAY = 'https://placehold.co/40x40/f3f4f6/9ca3af?text=RH'; +export const DEFAULT_RH_40X40_GRAY = 'https://placehold.co/40x40/f3f4f6/9ca3af?text=RH'; diff --git a/src/pages/AgentEditor.tsx b/src/pages/AgentEditor.tsx index 81815b6..10e36b0 100644 --- a/src/pages/AgentEditor.tsx +++ b/src/pages/AgentEditor.tsx @@ -3,7 +3,7 @@ import { Button, Form, Input, InputNumber, Modal, Upload, App as AntApp, List, P import type { UploadFile } from 'antd/es/upload/interface'; import { useNavigate, useParams } from 'react-router-dom'; import { Agent, AgentAPI, ImageAPI, KnowledgeStatus, SkillType, Team, TeamAPI, AiModel, ModelAPI } from '../api'; -import { PLACEHOLDER_40X40_GRAY } from '../constants'; +import { DEFAULT_RH_40X40_GRAY } from '../constants'; import SkillEditor from '../components/SkillEditor'; import McpPanel from '../components/McpPanel'; import ChatPreview from '../components/ChatPreview'; @@ -494,7 +494,7 @@ export default function AgentEditor() { label: (
- {m.model_name} + {m.model_name} {m.model_name}