Skip to content

Commit d488223

Browse files
authored
Fix custom theme not used in ConnectEmbed loading screen (thirdweb-dev#3240)
1 parent 913f99a commit d488223

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.changeset/strange-hounds-draw.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 custom theme not used in ConnectEmbed loading screen

packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ import type { ThirdwebClient } from "../../../../../client/client.js";
55
import type { Wallet } from "../../../../../wallets/interfaces/wallet.js";
66
import type { SmartWalletOptions } from "../../../../../wallets/smart/types.js";
77
import 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";
912
import { type Theme, radius } from "../../../../core/design-system/index.js";
1013
import type { SiweAuthOptions } from "../../../../core/hooks/auth/useSiweAuth.js";
1114
import { 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
}

0 commit comments

Comments
 (0)