diff --git a/src/pages/WalletPage.tsx b/src/pages/WalletPage.tsx index 21142ad..ef391b3 100644 --- a/src/pages/WalletPage.tsx +++ b/src/pages/WalletPage.tsx @@ -7,7 +7,6 @@ import { useWallet } from '@/hooks/useWallet'; import { useNWC } from '@/hooks/useNWCContext'; import { useCurrentUser } from '@/hooks/useCurrentUser'; import { useCashu } from '@/hooks/wallet/useCashu'; -import { useSatsToUsd } from '@/hooks/useExchangeRate'; import { LoginArea } from '@/components/auth/LoginArea'; import { CashuWalletCard } from '@/components/wallet/CashuWalletCard'; import { cn } from '@/lib/utils'; @@ -24,115 +23,43 @@ import { ChevronDown, ChevronUp, Wallet, - Bitcoin, } from 'lucide-react'; -// ─── Balance Hero ───────────────────────────────────────────────────────────── +// ─── Wallet status bar ──────────────────────────────────────────────────────── -function BalanceHero() { - const { totalBalance: cashuBalance, isInitialized: hasCashu } = useCashu(); - const cashuUsd = useSatsToUsd(cashuBalance); +function WalletStatusBar() { const { webln } = useWallet(); const { connections } = useNWC(); + const { isInitialized: hasCashu } = useCashu(); const hasNWC = connections.length > 0 && connections.some((c) => c.isConnected); const isReady = webln || hasNWC || hasCashu; return ( -
Cashu Balance
-- ≈ ${cashuUsd.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 })} -
- ) : ( -no balance yet
- )} -{w.name}
@@ -214,7 +144,7 @@ function RecommendedWallets() { ); } -// ─── Zaps explainer (collapsible, hidden once wallet connected) ─────────────── +// ─── What are zaps (collapsible, hidden once wallet connected) ──────────────── function WhatAreZaps({ walletConnected }: { walletConnected: boolean }) { const [open, setOpen] = useState(!walletConnected); @@ -223,7 +153,7 @@ function WhatAreZaps({ walletConnected }: { walletConnected: boolean }) { return (- Zaps are instant Bitcoin Lightning payments. Send sats to any skater, spot creator, or coach — no middleman, no platform cut. + Instant Bitcoin Lightning payments. Send sats to any skater, spot creator, or coach — no middleman, no platform cut.