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…

-
+ <> +