Fix some UI issues

This commit is contained in:
Urtzi Alfaro
2025-09-24 19:15:29 +02:00
parent 2de1e6ce40
commit be1fec17c4
3 changed files with 10 additions and 10 deletions

View File

@@ -107,7 +107,7 @@ export const useUIStore = create<UIState>()(
persist(
(set, get) => ({
// Initial state
theme: 'light',
theme: 'dark',
language: 'es',
sidebarState: 'expanded',
compactMode: false,
@@ -375,13 +375,13 @@ if (typeof window !== 'undefined') {
if (storedState) {
try {
const { state } = JSON.parse(storedState);
useUIStore.getState().setTheme(state.theme || 'auto');
useUIStore.getState().setTheme(state.theme || 'dark');
} catch (error) {
console.warn('Failed to parse stored UI state:', error);
useUIStore.getState().setTheme('auto');
useUIStore.getState().setTheme('dark');
}
} else {
useUIStore.getState().setTheme('auto');
useUIStore.getState().setTheme('dark');
}
// Listen for system theme changes