From 3ca2231e1027c654953b30462f4e9b81762e2ab7 Mon Sep 17 00:00:00 2001 From: dhoeben Date: Sun, 21 Dec 2025 09:04:03 +0100 Subject: [PATCH] Run Prettier --- web/src/context/theme-provider.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/web/src/context/theme-provider.tsx b/web/src/context/theme-provider.tsx index b2cf342d5..0c654708b 100644 --- a/web/src/context/theme-provider.tsx +++ b/web/src/context/theme-provider.tsx @@ -23,7 +23,7 @@ export const colorSchemes: ColorScheme[] = [ // eslint-disable-next-line react-refresh/only-export-components export const friendlyColorSchemeName = ( className: string, - t?: (key: string, options?: any) => string + t?: (key: string, options?: any) => string, ): string => { const words = className.split("-").slice(1); const key = "menu.theme." + words.join(""); @@ -39,7 +39,6 @@ export const friendlyColorSchemeName = ( return t(key, { defaultValue: fallback }); }; - type ThemeProviderProps = { children: React.ReactNode; defaultTheme?: Theme; @@ -134,9 +133,7 @@ export function ThemeProvider({ colorSchemes.push(className); } - if ( - !document.querySelector(`link[data-theme="${className}"]`) - ) { + if (!document.querySelector(`link[data-theme="${className}"]`)) { const link = document.createElement("link"); link.rel = "stylesheet"; link.href = `/config/themes/${file}`; @@ -150,7 +147,6 @@ export function ThemeProvider({ } root.classList.remove("light", "dark", "system", ...colorSchemes); - root.classList.add(theme, colorScheme); if (systemTheme) {