diff --git a/src/components/modals/budget-modal.tsx b/src/components/modals/budget-modal.tsx index 5035e9d..2ec4d14 100644 --- a/src/components/modals/budget-modal.tsx +++ b/src/components/modals/budget-modal.tsx @@ -1,7 +1,7 @@ "use client" import { useCallback, useEffect, useRef, useState } from "react" -import { Zap, Copy, Check, Loader2, ArrowLeft, History, Key } from "lucide-react" +import { Zap, Copy, Check, Loader2, ArrowLeft, History, Key, RefreshCw, ArrowUpRight } from "lucide-react" import { QRCodeSVG } from "qrcode.react" import { Dialog, @@ -11,7 +11,6 @@ import { DialogDescription, } from "@/components/ui/dialog" import { Button } from "@/components/ui/button" -import { Separator } from "@/components/ui/separator" import { useModalStore } from "@/stores/modal-store" import { useUserStore } from "@/stores/user-store" import { isSphinx, hasWebLN, payInvoice, payL402, topUpLsat, topUpConfirm, fetchTransactionHistory, pollPaymentStatus, fetchBuyLsatChallenge, TransactionRow } from "@/lib/sphinx" @@ -372,7 +371,7 @@ export function BudgetModal() { {step === "restore" && "Restore Token"} - {step === "balance" && "Manage your Lightning L402 balance."} + {step === "balance" && "Manage your balance."} {step === "first-purchase" && "Buy your first L402 with any Lightning wallet."} {step === "first-invoice" && "Scan or copy the invoice to pay."} {step === "amount" && "Choose an amount to add."} @@ -388,86 +387,67 @@ export function BudgetModal() { {/* Step: Balance */} {step === "balance" && ( <> -
- -
-

- {formattedBudget} -

-

- satoshis -

+
+
+
+
+ + {formattedBudget} + + + sats + +
+
-
-
- - {sphinxConnected - ? "Connected via Sphinx" - : weblnAvailable - ? "WebLN detected (Alby, etc.)" - : hasExistingL402 - ? "L402 token active" - : "Pay via Lightning invoice (any wallet)"} - -
- {error && (

{error}

)} - - -
- + + {loading ? "Processing..." : "Top Up"} + +
+ + - - - + - - + + + Manage Token +
)}