user-settings: fix theme icon colors
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -141,8 +141,8 @@ export const UserSettingsThemeToggle = () => {
|
||||
onChange={handleSetTheme}
|
||||
>
|
||||
{themeIds.map(theme => {
|
||||
const themeIcon = themeIds.find(it => it.id === theme.id)?.icon;
|
||||
const themeId = theme.id;
|
||||
const themeIcon = theme.icon;
|
||||
const themeTitle =
|
||||
theme.title ||
|
||||
(themeId === 'light' || themeId === 'dark'
|
||||
@@ -156,7 +156,11 @@ export const UserSettingsThemeToggle = () => {
|
||||
>
|
||||
<>
|
||||
{themeTitle}
|
||||
<ThemeIcon id={themeId} icon={themeIcon} activeId={themeId} />
|
||||
<ThemeIcon
|
||||
id={themeId}
|
||||
icon={themeIcon}
|
||||
activeId={activeThemeId}
|
||||
/>
|
||||
</>
|
||||
</TooltipToggleButton>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user