Theme preference logic moved to UISlice

This commit is contained in:
aarya-16 committed 2024-10-27 20:33:33 +05:30
1 parent 8c2151dcf3
commit 0c3d8245e9
2 files changed
+1 -28

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ const initialState = {
sidebar: {
collapsed: false,
},
mode: "light",
mode: window?.matchMedia?.('(prefers-color-scheme: dark)')?.matches? "dark": "light",
greeting: { index: 0, lastUpdate: null },
timezone: "America/Toronto",
};