From 515406a02b6f624c960493da5b59a20558b14e92 Mon Sep 17 00:00:00 2001 From: lukachi Date: Thu, 21 Dec 2023 17:22:05 +0200 Subject: [PATCH] hotfix --- src/hooks/theme.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hooks/theme.ts b/src/hooks/theme.ts index 1d2cf16b..f0639df5 100644 --- a/src/hooks/theme.ts +++ b/src/hooks/theme.ts @@ -33,8 +33,7 @@ export const useThemeMode = () => { if (!themeMode) return document.body.classList.add(THEME_CLASSES[themeMode]) - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []) + }, [themeMode]) return { theme, setTheme: uiStore.setThemeMode } }