File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
apps/dashboard/src/app/onboarding Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 1- import { getThirdwebClient } from "@/constants/thirdweb.server" ;
2- import { AutoConnect } from "thirdweb/react" ;
1+ import { TWAutoConnect } from "app/components/autoconnect" ;
32
43export default function OnboardingLayout ( {
54 children,
65} : { children : React . ReactNode } ) {
7- const thirdwebClient = getThirdwebClient ( ) ;
8-
96 return (
107 < >
11- < AutoConnect client = { thirdwebClient } />
8+ < TWAutoConnect />
129 { children }
1310 </ >
1411 ) ;
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import {
2121 SelectTrigger ,
2222 SelectValue ,
2323} from "@/components/ui/select" ;
24+ import { useDashboardRouter } from "@/lib/DashboardRouter" ;
2425import { cn } from "@/lib/utils" ;
2526import { useAccount } from "@3rdweb-sdk/react/hooks/useApi" ;
2627import { zodResolver } from "@hookform/resolvers/zod" ;
@@ -43,7 +44,6 @@ import {
4344 Wallet ,
4445 WalletCards ,
4546} from "lucide-react" ;
46- import { useRouter } from "next/navigation" ;
4747import React from "react" ;
4848import { useState } from "react" ;
4949import {
@@ -197,7 +197,7 @@ export default function OnboardingPage({
197197 const [ step , setStep ] = useState ( searchParams . email ? 2 : 1 ) ;
198198 const [ direction , setDirection ] = useState ( 1 ) ;
199199 const [ isLoading , setIsLoading ] = useState ( false ) ;
200- const router = useRouter ( ) ;
200+ const router = useDashboardRouter ( ) ;
201201
202202 const form = useForm < FormData > ( {
203203 resolver : zodResolver ( formSchema ) ,
You can’t perform that action at this time.
0 commit comments