File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
packages/thirdweb/src/react/native/ui/connect Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " thirdweb " : patch
3+ ---
4+
5+ react: fix native ` <ConnectEmbed /> ` component not auto-connecting
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import { useDisconnect } from "../../../core/hooks/wallets/useDisconnect.js";
1717import { useConnectionManager } from "../../../core/providers/connection-manager.js" ;
1818import { useWalletInfo } from "../../../core/utils/wallet.js" ;
1919import { radius , spacing } from "../../design-system/index.js" ;
20+ import { useAutoConnect } from "../../hooks/wallets/useAutoConnect.js" ;
2021import { getDefaultWallets } from "../../wallets/defaultWallets.js" ;
2122import { ThemedButton , ThemedButtonWithIcon } from "../components/button.js" ;
2223import { type ContainerType , Header } from "../components/Header.js" ;
@@ -74,6 +75,11 @@ export function ConnectEmbed(props: ConnectEmbedProps) {
7475 ...props ,
7576 connectModal : { ...props } ,
7677 } as ConnectButtonProps ;
78+ useAutoConnect ( {
79+ ...props ,
80+ siweAuth : siweAuth ,
81+ } ) ;
82+
7783 return isConnected ? null : (
7884 < ConnectModal
7985 { ...adaptedProps }
You can’t perform that action at this time.
0 commit comments