Skip to content

Commit 592bf6f

Browse files
authored
[TOOL-5021] SDK: Fix theme in ConnectButton Details Modal Buy screen (#7589)
1 parent 8973174 commit 592bf6f

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

.changeset/ten-places-feel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Fix theme in ConnectButton Details Modal Buy screen

packages/thirdweb/src/react/web/ui/ConnectWallet/Details.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,11 @@ export function DetailsModal(props: {
978978
onCancel={() => setScreen("main")}
979979
onSuccess={() => setScreen("main")}
980980
supportedTokens={props.supportedTokens}
981+
theme={props.theme}
982+
style={{
983+
border: "none",
984+
borderRadius: radius.lg,
985+
}}
981986
tokenAddress={
982987
props.displayBalanceToken?.[Number(requestedChainId)] as
983988
| `0x${string}`

packages/thirdweb/src/stories/ConnectButton/themes.stories.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import type { Meta, StoryObj } from "@storybook/react-vite";
2+
import { darkTheme } from "../../react/core/design-system/index.js";
23
import { ConnectButton } from "../../react/web/ui/ConnectWallet/ConnectButton.js";
34
import { storyClient } from "../utils.js";
45

@@ -27,4 +28,14 @@ export const Light: Story = {
2728
},
2829
};
2930

31+
export const CustomBlack: Story = {
32+
args: {
33+
theme: darkTheme({
34+
colors: {
35+
modalBg: "black",
36+
},
37+
}),
38+
},
39+
};
40+
3041
export default meta;

0 commit comments

Comments
 (0)