Skip to content

Commit a9c4761

Browse files
committed
Merge branch 'ian/ftux' of https://github.com/thirdweb-dev/js into ian/ftux
2 parents 210a296 + fdb756b commit a9c4761

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

apps/dashboard/src/app/onboarding/layout.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
import { getThirdwebClient } from "@/constants/thirdweb.server";
2-
import { AutoConnect } from "thirdweb/react";
1+
import { TWAutoConnect } from "app/components/autoconnect";
32

43
export 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
);

apps/dashboard/src/app/onboarding/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
SelectTrigger,
2222
SelectValue,
2323
} from "@/components/ui/select";
24+
import { useDashboardRouter } from "@/lib/DashboardRouter";
2425
import { cn } from "@/lib/utils";
2526
import { useAccount } from "@3rdweb-sdk/react/hooks/useApi";
2627
import { zodResolver } from "@hookform/resolvers/zod";
@@ -43,7 +44,6 @@ import {
4344
Wallet,
4445
WalletCards,
4546
} from "lucide-react";
46-
import { useRouter } from "next/navigation";
4747
import React from "react";
4848
import { useState } from "react";
4949
import {
@@ -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),

0 commit comments

Comments
 (0)