mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 17:38:04 +08:00
dark mode for model provider
This commit is contained in:
@ -125,7 +125,7 @@ export const AppContextProvider: FC<AppContextProviderProps> = ({ children }) =>
|
||||
setCurrentWorkspace(currentWorkspaceResponse)
|
||||
}, [currentWorkspaceResponse])
|
||||
|
||||
const [theme, setTheme] = useState<Theme>(Theme.light)
|
||||
const [theme, setTheme] = useState<Theme>(Theme.dark)
|
||||
const handleSetTheme = useCallback((theme: Theme) => {
|
||||
setTheme(theme)
|
||||
globalThis.document.documentElement.setAttribute('data-theme', theme)
|
||||
|
||||
Reference in New Issue
Block a user