diff --git a/src/App.tsx b/src/App.tsx index 0d1f1df..15562c6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -31,10 +31,11 @@ function App() { const [authReady, setAuthReady] = useState(false); useEffect(() => { - initializeTheme(); + const cleanupTheme = initializeTheme(); void restoreSession().finally(() => { setAuthReady(true); }); + return cleanupTheme; }, [initializeTheme, restoreSession]); useEffect(() => { diff --git a/src/components/layout/MainLayout.tsx b/src/components/layout/MainLayout.tsx index 28f2b01..b132e6d 100644 --- a/src/components/layout/MainLayout.tsx +++ b/src/components/layout/MainLayout.tsx @@ -119,12 +119,12 @@ const headerIcons = { autoTheme: ( - + - + @@ -469,7 +469,7 @@ export function MainLayout() { -