Skip to content

Commit e6e01e3

Browse files
authored
feat(entrykit): always use rainbowkit dark theme (#3556)
1 parent 7106953 commit e6e01e3

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

packages/entrykit/src/EntryKitConfigProvider.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import "@rainbow-me/rainbowkit/styles.css";
22
import { createContext, useContext, type ReactNode } from "react";
3-
import { RainbowKitProvider, lightTheme, midnightTheme } from "@rainbow-me/rainbowkit";
3+
import { RainbowKitProvider, midnightTheme } from "@rainbow-me/rainbowkit";
44
import { EntryKitConfig } from "./config/output";
55
import { Chain } from "viem";
66
import { useChains } from "wagmi";
@@ -37,16 +37,7 @@ export function EntryKitConfigProvider({ config, children }: Props) {
3737
appName: config.appName,
3838
// TODO: learn more and disclaimer
3939
}}
40-
theme={
41-
config.theme === "light"
42-
? lightTheme({ borderRadius: "none" })
43-
: config.theme === "dark"
44-
? midnightTheme({ borderRadius: "none" })
45-
: {
46-
lightMode: lightTheme({ borderRadius: "none" }),
47-
darkMode: midnightTheme({ borderRadius: "none" }),
48-
}
49-
}
40+
theme={midnightTheme({ borderRadius: "none" })}
5041
>
5142
<Context.Provider value={{ ...config, chain }}>{children}</Context.Provider>
5243
</RainbowKitProvider>

0 commit comments

Comments
 (0)