Workspaces in Workspaces all around

This commit is contained in:
2026-02-19 01:49:15 +00:00
parent 72bca6cd42
commit dd8ab84df5
84 changed files with 3047 additions and 749 deletions
+5 -5
View File
@@ -1,13 +1,13 @@
import { useEffect } from 'react';
import { useTheme } from '@/components/ui/ThemeProvider';
import { useColorMode } from '@/components/ui/ThemeProvider';
import { useSettings } from './useSettings';
export const useThemeSync = () => {
export const useColorModeSync = () => {
const { settings } = useSettings();
const { setTheme } = useTheme();
const { setColorMode } = useColorMode();
useEffect(() => {
if (!settings) return;
setTheme('light');
}, [settings?.appearance?.colorTheme]);
setColorMode(settings.appearance.colorMode);
}, [settings?.appearance?.colorMode]);
};