File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed
packages/thirdweb/src/react/web/ui/ConnectWallet/Modal Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " thirdweb " : patch
3+ ---
4+
5+ Fix custom theme not used in ConnectEmbed loading screen
Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ import type { ThirdwebClient } from "../../../../../client/client.js";
55import type { Wallet } from "../../../../../wallets/interfaces/wallet.js" ;
66import type { SmartWalletOptions } from "../../../../../wallets/smart/types.js" ;
77import type { AppMetadata } from "../../../../../wallets/types.js" ;
8- import { useCustomTheme } from "../../../../core/design-system/CustomThemeProvider.js" ;
8+ import {
9+ CustomThemeProvider ,
10+ useCustomTheme ,
11+ } from "../../../../core/design-system/CustomThemeProvider.js" ;
912import { type Theme , radius } from "../../../../core/design-system/index.js" ;
1013import type { SiweAuthOptions } from "../../../../core/hooks/auth/useSiweAuth.js" ;
1114import { useSiweAuth } from "../../../../core/hooks/auth/useSiweAuth.js" ;
@@ -374,9 +377,11 @@ export function ConnectEmbed(props: ConnectEmbedProps) {
374377 return (
375378 < >
376379 { autoConnectComp }
377- < EmbedContainer modalSize = { modalSize } >
378- < LoadingScreen />
379- </ EmbedContainer >
380+ < CustomThemeProvider theme = { props . theme || "dark" } >
381+ < EmbedContainer modalSize = { modalSize } >
382+ < LoadingScreen />
383+ </ EmbedContainer >
384+ </ CustomThemeProvider >
380385 </ >
381386 ) ;
382387 }
You can’t perform that action at this time.
0 commit comments