From e2b90b267f53330ffe895d9f4928629dadb82bca Mon Sep 17 00:00:00 2001
From: Wuraola Olaniyan <122721324+OG-wura@users.noreply.github.com>
Date: Thu, 23 Jul 2026 17:12:53 +0000
Subject: [PATCH] feat: header wallet balance
---
components/navbar/Navbar.tsx | 17 ++-
components/navbar/WalletBalance.tsx | 61 ++++++++
.../navbar/__tests__/WalletBalance.test.tsx | 131 ++++++++++++++++++
hooks/useStellarBalance.hook.ts | 72 ++++++++++
4 files changed, 276 insertions(+), 5 deletions(-)
create mode 100644 components/navbar/WalletBalance.tsx
create mode 100644 components/navbar/__tests__/WalletBalance.test.tsx
create mode 100644 hooks/useStellarBalance.hook.ts
diff --git a/components/navbar/Navbar.tsx b/components/navbar/Navbar.tsx
index 15044276..06d01b37 100644
--- a/components/navbar/Navbar.tsx
+++ b/components/navbar/Navbar.tsx
@@ -6,6 +6,7 @@ import { usePathname } from "next/navigation";
import { SearchInput } from "./SearchInput";
import { NetworkSwitcher } from "./NetworkSwitcher";
import { WalletMenu } from "./WalletMenu";
+import { WalletBalance } from "./WalletBalance";
import { ConnectWalletAction } from "./ConnectWalletAction";
import { ConnectWalletModal } from "@/components/connect-wallet-modal";
import { useWalletContext } from "@/context/WalletContext";
@@ -101,7 +102,10 @@ export function Navbar() {
Loading...
) : connected ? (
-
+
+
+
+
) : (
) : connected ? (
-
-
- {user?.name?.[0] || "U"}
-
+
+
+
+
+ {user?.name?.[0] || "U"}
+
+
) : (