File tree Expand file tree Collapse file tree 3 files changed +21
-0
lines changed
react/web/ui/ConnectWallet Expand file tree Collapse file tree 3 files changed +21
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " thirdweb " : patch
3
+ ---
4
+
5
+ Fix theme in ConnectButton Details Modal Buy screen
Original file line number Diff line number Diff line change @@ -978,6 +978,11 @@ export function DetailsModal(props: {
978
978
onCancel = { ( ) => setScreen ( "main" ) }
979
979
onSuccess = { ( ) => setScreen ( "main" ) }
980
980
supportedTokens = { props . supportedTokens }
981
+ theme = { props . theme }
982
+ style = { {
983
+ border : "none" ,
984
+ borderRadius : radius . lg ,
985
+ } }
981
986
tokenAddress = {
982
987
props . displayBalanceToken ?. [ Number ( requestedChainId ) ] as
983
988
| `0x${string } `
Original file line number Diff line number Diff line change 1
1
import type { Meta , StoryObj } from "@storybook/react-vite" ;
2
+ import { darkTheme } from "../../react/core/design-system/index.js" ;
2
3
import { ConnectButton } from "../../react/web/ui/ConnectWallet/ConnectButton.js" ;
3
4
import { storyClient } from "../utils.js" ;
4
5
@@ -27,4 +28,14 @@ export const Light: Story = {
27
28
} ,
28
29
} ;
29
30
31
+ export const CustomBlack : Story = {
32
+ args : {
33
+ theme : darkTheme ( {
34
+ colors : {
35
+ modalBg : "black" ,
36
+ } ,
37
+ } ) ,
38
+ } ,
39
+ } ;
40
+
30
41
export default meta ;
You can’t perform that action at this time.
0 commit comments