File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 11"use client" ;
22import type { ThirdwebClient } from "thirdweb" ;
33import { AutoConnect } from "thirdweb/react" ;
4- import type { SmartWalletOptions } from "thirdweb/wallets" ;
54
6- export function TWAutoConnect ( props : {
7- accountAbstraction ?: SmartWalletOptions ;
8- client : ThirdwebClient ;
9- } ) {
10- return (
11- < AutoConnect
12- accountAbstraction = { props . accountAbstraction }
13- client = { props . client }
14- />
15- ) ;
5+ export function TWAutoConnect ( props : { client : ThirdwebClient } ) {
6+ return < AutoConnect client = { props . client } /> ;
167}
Original file line number Diff line number Diff line change 22import { ThemeProvider } from "next-themes" ;
33import { ThirdwebProvider } from "thirdweb/react" ;
44import { Toaster } from "@/components/ui/sonner" ;
5+ import { getClientThirdwebClient } from "@/constants/thirdweb-client.client" ;
6+ import { TWAutoConnect } from "../../../(app)/components/autoconnect" ;
7+
8+ const thirdwebClient = getClientThirdwebClient ( ) ;
59
610export function BridgeProviders ( { children } : { children : React . ReactNode } ) {
711 return (
812 < ThirdwebProvider >
13+ < TWAutoConnect client = { thirdwebClient } />
914 < ThemeProvider
1015 attribute = "class"
1116 defaultTheme = "dark"
You can’t perform that action at this time.
0 commit comments