Skip to content

Commit

Permalink
chore: disable dark mode due to UI issues, set light mode as default
Browse files Browse the repository at this point in the history
  • Loading branch information
bekossy committed Sep 30, 2024
1 parent 131fe1a commit 864e243
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions agenta-web/src/components/Layout/ThemeContextProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const ThemeContextProvider: React.FC<PropsWithChildren> = ({children}) => {
setAppTheme(getAppTheme(themeMode))
}, [themeMode])

const val = appTheme || ThemeMode.Light
const val = ThemeMode.Light

return (
<ThemeContext.Provider
Expand All @@ -67,8 +67,7 @@ const ThemeContextProvider: React.FC<PropsWithChildren> = ({children}) => {
>
<ConfigProvider
theme={{
algorithm:
val === ThemeMode.Dark ? theme.darkAlgorithm : theme.defaultAlgorithm,
algorithm: theme.defaultAlgorithm,
...antdTokens,
}}
>
Expand Down

0 comments on commit 864e243

Please sign in to comment.