The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
improved fade in
Steven Teyfb56b493f5ba
diff --git a/components/layout/home/index.tsx b/components/layout/home/index.tsxindex 95268b46cb..40d1aa65f0 100644--- a/components/layout/home/index.tsx+++ b/components/layout/home/index.tsx@@ -17,7 +17,7 @@ export default function HomeLayout({domain?: string;meta?: ReactNode;}) {- const { data: session } = useSession();+ const { data: session, status } = useSession();const router = useRouter();const { key } = router.query as { key?: string };return (@@ -51,21 +51,21 @@ export default function HomeLayout({</div><AnimatePresence>- {session ? (+ {!session && status !== "loading" ? (<motion.a{...FADE_IN_ANIMATION_SETTINGS}- href="https://app.dub.sh"+ href="https://app.dub.sh/login"className="rounded-full border border-black bg-black py-1.5 px-5 text-sm text-white transition-all hover:bg-white hover:text-black">- Dashboard+ Sign in</motion.a>) : (<motion.a{...FADE_IN_ANIMATION_SETTINGS}- href="https://app.dub.sh/login"+ href="https://app.dub.sh"className="rounded-full border border-black bg-black py-1.5 px-5 text-sm text-white transition-all hover:bg-white hover:text-black">- Sign in+ Dashboard</motion.a>)}</AnimatePresence>