Skip to content

Commit

Permalink
fix: locale issues (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat authored Sep 12, 2023
1 parent e59fdeb commit d49bb9b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
32 changes: 16 additions & 16 deletions src/context/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,25 +98,25 @@ const ThemeProvider = (props: any) => {
<ThemeContext.Provider
value={{ theme, switchTheme, isCompact, setIsCompact, primaryColor, switchPrimaryColor }}
>
<ProConfigProvider
hashed={false}
dark={isDark}
>
<ConfigProvider
locale={en_US}
theme={{
token: {
colorPrimary: primaryColor,
borderRadius: 3,
},
algorithm,
}}
>
<ConfigProvider
locale={en_US}
theme={{
token: {
colorPrimary: primaryColor,
borderRadius: 3,
},
algorithm,
}}
>
<ProConfigProvider
hashed={false}
dark={isDark}
>
<App>
{props.children}
</App>
</ConfigProvider>
</ProConfigProvider>
</ProConfigProvider>
</ConfigProvider>
</ThemeContext.Provider>
)
}
Expand Down
1 change: 0 additions & 1 deletion src/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ const Layout = () => {
}}
>
<ProLayout
locale="en-US"
contentWidth="Fixed"
title="Agent explorer"
logo={false}
Expand Down

0 comments on commit d49bb9b

Please sign in to comment.