From 5f0e19303b3ce0c8c285247d2ab45fa899f9c5f6 Mon Sep 17 00:00:00 2001 From: Sweets Sweetman Date: Thu, 23 Jul 2026 06:19:52 -0500 Subject: [PATCH 1/3] feat(header): reflect signed-in state in the marketing header The marketing header always showed Sign In + Sign Up, even for a signed-in user. Read Privy auth state (`usePrivy`) and, once resolved, show a single "Open app" CTA instead. Gated on `ready` so the server and first client render both show the signed-out CTAs (no hydration mismatch), then swap in place. Moves `
` inside `` in the root layout so the header can consume Privy context; the provider is SSR-safe (plain context on the server) so pages stay statically prerenderable. Refs chat#1885. Co-Authored-By: Claude Opus 4.8 (1M context) --- app/layout.tsx | 6 ++--- components/layout/Header.tsx | 44 +++++++++++++++++++++++++----------- 2 files changed, 34 insertions(+), 16 deletions(-) diff --git a/app/layout.tsx b/app/layout.tsx index c688d64..d7dec35 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -96,14 +96,14 @@ export default function RootLayout({ -
+
{children}
+