diff --git a/src/components/pages/settings/parts/SettingsDashboard.tsx b/src/components/pages/settings/parts/SettingsDashboard.tsx index 1b677a46..53c28502 100644 --- a/src/components/pages/settings/parts/SettingsDashboard.tsx +++ b/src/components/pages/settings/parts/SettingsDashboard.tsx @@ -13,14 +13,9 @@ import { Stack, Switch, Text, - Title + Title, } from '@mantine/core'; -import { - IconMoonFilled, - IconPaintFilled, - IconPercentage, - IconSunFilled -} from '@tabler/icons-react'; +import { IconMoonFilled, IconPaintFilled, IconPercentage, IconSunFilled } from '@tabler/icons-react'; function ThemeSelectItem({ value, label, ...others }: { value: string; label: string }) { const themes = useThemes(); @@ -33,9 +28,11 @@ function ThemeSelectItem({ value, label, ...others }: { value: string; label: st
{label}
{value !== 'system' && (
- {mergedTheme.colors[mergedTheme?.primaryColor!]?.map((color) => ( - - ))} + {mergedTheme.colors[mergedTheme.colorScheme === 'dark' ? 'dark' : mergedTheme?.primaryColor!]?.map( + (color) => ( + + ) + )}
)} @@ -56,7 +53,6 @@ export default function SettingsDashboard() {