Skip to content

Commit a90569d

Browse files
committed
Dashboard: Fix autoconnect in /bridge page
1 parent 5ff6063 commit a90569d

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed
Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
11
"use client";
22
import type { ThirdwebClient } from "thirdweb";
33
import { 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
}

apps/dashboard/src/app/bridge/components/client/Providers.client.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
import { ThemeProvider } from "next-themes";
33
import { ThirdwebProvider } from "thirdweb/react";
44
import { 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

610
export function BridgeProviders({ children }: { children: React.ReactNode }) {
711
return (
812
<ThirdwebProvider>
13+
<TWAutoConnect client={thirdwebClient} />
914
<ThemeProvider
1015
attribute="class"
1116
defaultTheme="dark"

0 commit comments

Comments
 (0)