From 83760c4a9bf6a8ce31289b9944bfcae3971829e3 Mon Sep 17 00:00:00 2001 From: Felix Faerber Date: Thu, 28 May 2026 09:29:20 +0300 Subject: [PATCH] add shared navbar on /account, /chat, /bee Three-link nav (Chat / Account / Bee) with active-route highlighting, plus a t4t Gateway home link on the left. Replaces the bespoke header on the chat page; account and bee gain the same top-of-page nav. Co-Authored-By: Claude Opus 4.7 (1M context) --- app/components/nav.tsx | 37 +++++++++++++++++++++++++++++++++++++ app/routes/account.tsx | 15 +++++++++++---- app/routes/bee.tsx | 15 +++++++++++---- app/routes/chat.tsx | 15 +++++---------- 4 files changed, 64 insertions(+), 18 deletions(-) create mode 100644 app/components/nav.tsx diff --git a/app/components/nav.tsx b/app/components/nav.tsx new file mode 100644 index 0000000..b2427aa --- /dev/null +++ b/app/components/nav.tsx @@ -0,0 +1,37 @@ +import { NavLink } from 'react-router'; + +const ITEMS = [ + { to: '/chat', label: 'Chat' }, + { to: '/account', label: 'Account' }, + { to: '/bee', label: 'Bee' }, +]; + +export function Nav() { + return ( + + ); +} diff --git a/app/routes/account.tsx b/app/routes/account.tsx index 76f7099..61f7eb3 100644 --- a/app/routes/account.tsx +++ b/app/routes/account.tsx @@ -1,4 +1,5 @@ import { useEffect, useState } from 'react'; +import { Nav } from '~/components/nav'; const API_URL = import.meta.env.VITE_API_URL ?? 'https://api.t4t-gateway.com'; const WEI_PER_XBZZ = 10n ** 18n; @@ -168,14 +169,19 @@ export default function Account() { if (loading) { return ( -
-

Loading…

-
+ <> +