diff --git a/src/SettingDrawer/ThemeColor.tsx b/src/SettingDrawer/ThemeColor.tsx index 3c11bdfd..b6048526 100644 --- a/src/SettingDrawer/ThemeColor.tsx +++ b/src/SettingDrawer/ThemeColor.tsx @@ -27,7 +27,6 @@ export interface ThemeColorProps { key: string; color: string; }[]; - title?: string; value: string; onChange: (color: string) => void; formatMessage: (data: { id: any; defaultMessage?: string }) => string; @@ -36,14 +35,13 @@ export interface ThemeColorProps { const ThemeColor: React.ForwardRefRenderFunction< HTMLDivElement, ThemeColorProps -> = ({ colors, title, value, onChange, formatMessage }, ref) => { +> = ({ colors, value, onChange, formatMessage }, ref) => { const colorList = colors || []; if (colorList.length < 1) { return null; } return (
-

{title}

{colorList.map(({ key, color }) => { const themeKey = genThemeToString(key); diff --git a/src/SettingDrawer/index.tsx b/src/SettingDrawer/index.tsx index a4cbf1e0..3157b0da 100644 --- a/src/SettingDrawer/index.tsx +++ b/src/SettingDrawer/index.tsx @@ -575,20 +575,26 @@ const SettingDrawer: React.FC = (props) => { onChange={(value) => changeSetting('navTheme', value, hideLoading)} /> - - - changeSetting('primaryColor', color, hideLoading) - } - /> + + + changeSetting('primaryColor', color, hideLoading) + } + /> +