fix: the theme align with the system
This commit is contained in:
@@ -53,6 +53,7 @@ export default function useUserSettings() {
|
||||
useEffect(() => {
|
||||
if (userSettings.mode !== 'auto') return;
|
||||
|
||||
setTheme('auto');
|
||||
const mediaQuery = window.matchMedia('(prefers-color-scheme: dark)');
|
||||
const handleChange = () => {
|
||||
setTheme('auto');
|
||||
|
||||
Reference in New Issue
Block a user