diff --git a/src/renderer/src/i18n/label.ts b/src/renderer/src/i18n/label.ts index e679200804..64125c2a8d 100644 --- a/src/renderer/src/i18n/label.ts +++ b/src/renderer/src/i18n/label.ts @@ -165,9 +165,21 @@ export const getThemeModeLabel = (key: string): string => { return getLabel(themeModeKeyMap, key) } +// const sidebarIconKeyMap = { +// assistants: t('assistants.title'), +// store: t('assistants.presets.title'), +// paintings: t('paintings.title'), +// translate: t('translate.title'), +// minapp: t('minapp.title'), +// knowledge: t('knowledge.title'), +// files: t('files.title'), +// code_tools: t('code.title'), +// notes: t('notes.title') +// } as const + const sidebarIconKeyMap = { assistants: 'assistants.title', - agents: 'agents.title', + store: 'assistants.presets.title', paintings: 'paintings.title', translate: 'translate.title', minapp: 'minapp.title', diff --git a/src/renderer/src/pages/settings/DisplaySettings/SidebarIconsManager.tsx b/src/renderer/src/pages/settings/DisplaySettings/SidebarIconsManager.tsx index e79af44eb6..62887d8a7f 100644 --- a/src/renderer/src/pages/settings/DisplaySettings/SidebarIconsManager.tsx +++ b/src/renderer/src/pages/settings/DisplaySettings/SidebarIconsManager.tsx @@ -23,7 +23,7 @@ import { Palette, Sparkle } from 'lucide-react' -import { FC, useCallback, useMemo } from 'react' +import { FC, ReactNode, useCallback, useMemo } from 'react' import { useTranslation } from 'react-i18next' import styled from 'styled-components' @@ -118,17 +118,18 @@ const SidebarIconsManager: FC = ({ // 使用useMemo缓存图标映射 const iconMap = useMemo( - () => ({ - assistants: , - agents: , - paintings: , - translate: , - minapp: , - knowledge: , - files: , - notes: , - code_tools: - }), + () => + ({ + assistants: , + store: , + paintings: , + translate: , + minapp: , + knowledge: , + files: , + notes: , + code_tools: + }) satisfies Record, [] )