The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update not-found-hint.tsx
Steven Teydc14ced524c7
diff --git a/apps/web/app/not-found-hint.tsx b/apps/web/app/not-found-hint.tsxindex 8bcfb42910..295356182c 100644--- a/apps/web/app/not-found-hint.tsx+++ b/apps/web/app/not-found-hint.tsx@@ -2,7 +2,6 @@import { Button } from "@dub/ui";import { SessionProvider, signOut, useSession } from "next-auth/react";-import Link from "next/link";import { useState } from "react";export function NotFoundHint() {@@ -14,15 +13,19 @@ export function NotFoundHint() {}function NotFoundHintChild() {- const { data: session } = useSession();+ const { data: session, status } = useSession();const [isLoading, setIsLoading] = useState(false);- return session ? (+ return (<>- <p className="text-neutral-600">+ <div className="flex items-center gap-2 text-neutral-600">You're signed in as{" "}- <b className="text-neutral-800">{session.user?.email}</b>.- </p>+ {session ? (+ <b className="text-neutral-800">{session.user?.email}.</b>+ ) : (+ <span className="h-5 w-40 rounded-md border border-neutral-300 bg-neutral-200" />+ )}+ </div><Buttontext="Sign in as a different user"onClick={() => {@@ -33,12 +36,5 @@ function NotFoundHintChild() {className="w-fit"/></>- ) : (- <Link- href="/"- className="flex h-9 w-fit items-center justify-center rounded-md border border-black bg-black px-4 text-sm text-white hover:bg-neutral-800 hover:ring-4 hover:ring-neutral-200"- >- Go back home- </Link>);}