We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f96f3ba commit 31f7988Copy full SHA for 31f7988
1 file changed
src/App.tsx
@@ -260,14 +260,8 @@ function App() {
260
}
261
}, []);
262
263
- useEffect(() => {
264
- const stored = localStorage.getItem('theme');
265
- if (stored === 'dark') {
266
- document.documentElement.classList.add('dark');
267
- } else if (!stored && window.matchMedia('(prefers-color-scheme: dark)').matches) {
268
269
- }
270
- }, []);
+ // Theme is initialized in index.html inline script (before React)
+ // and managed by ThemeToggle component — no need to re-init here
271
272
const renderContent = () => {
273
switch (activeTab) {
0 commit comments