|
|
|
|
@ -127,7 +127,7 @@ export const AppContextProvider: FC<AppContextProviderProps> = ({ children }) =>
|
|
|
|
|
setCurrentWorkspace(currentWorkspaceResponse)
|
|
|
|
|
}, [currentWorkspaceResponse])
|
|
|
|
|
|
|
|
|
|
const [theme, setTheme] = useState<Theme>(Theme.dark)
|
|
|
|
|
const [theme, setTheme] = useState<Theme>(Theme.light)
|
|
|
|
|
const handleSetTheme = useCallback((theme: Theme) => {
|
|
|
|
|
setTheme(theme)
|
|
|
|
|
globalThis.document.documentElement.setAttribute('data-theme', theme)
|
|
|
|
|
|