demo bug fixes

This commit is contained in:
Mayur Shinde
2026-06-12 22:45:00 +05:30
parent 8247216ca9
commit 11d5662a92
5 changed files with 52 additions and 19 deletions
+1 -5
View File
@@ -9,12 +9,8 @@ export const ThemeProvider = ({ children }) => {
if (savedTheme) {
return savedTheme;
}
// Check system preference
if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
return 'dark';
}
}
return 'light'; // Default to light if no preference
return 'dark'; // Default to dark for first-time visitors
});
useEffect(() => {