Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions apps/dashboard/src/app/(app)/components/autoconnect.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
"use client";
import type { ThirdwebClient } from "thirdweb";
import { AutoConnect } from "thirdweb/react";
import type { SmartWalletOptions } from "thirdweb/wallets";

export function TWAutoConnect(props: {
accountAbstraction?: SmartWalletOptions;
client: ThirdwebClient;
}) {
return (
<AutoConnect
accountAbstraction={props.accountAbstraction}
client={props.client}
/>
);
export function TWAutoConnect(props: { client: ThirdwebClient }) {
return <AutoConnect client={props.client} />;
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
import { ThemeProvider } from "next-themes";
import { ThirdwebProvider } from "thirdweb/react";
import { Toaster } from "@/components/ui/sonner";
import { getClientThirdwebClient } from "@/constants/thirdweb-client.client";
import { TWAutoConnect } from "../../../(app)/components/autoconnect";

const thirdwebClient = getClientThirdwebClient();

export function BridgeProviders({ children }: { children: React.ReactNode }) {
return (
<ThirdwebProvider>
<TWAutoConnect client={thirdwebClient} />
<ThemeProvider
attribute="class"
defaultTheme="dark"
Expand Down
Loading