diff --git a/src/components/ZapDialog.tsx b/src/components/ZapDialog.tsx index ae8bde8..39e4207 100644 --- a/src/components/ZapDialog.tsx +++ b/src/components/ZapDialog.tsx @@ -1,6 +1,7 @@ import { useState, useEffect, useRef, forwardRef } from 'react'; import { Zap, Copy, Check, ExternalLink, Sparkle, Sparkles, Star, Rocket, ArrowLeft, X } from 'lucide-react'; import { Button } from '@/components/ui/button'; +import { cn } from '@/lib/utils'; import { Dialog, DialogContent, @@ -85,16 +86,16 @@ const ZapContent = forwardRef(({ {invoice ? (
{/* Payment amount display */} -
+
{amount} sats
-
+
{/* QR Code */} -
- +
+ {qrCodeUrl ? ( (({
) : ( <> -
+
(({ setAmount(parseInt(value, 10)); } }} - className="grid grid-cols-5 gap-2 w-full" + className="grid grid-cols-5 gap-1 w-full" > {presetAmounts.map(({ amount: presetAmount, icon: Icon }) => ( - + {presetAmount} ))} @@ -204,19 +205,19 @@ const ZapContent = forwardRef(({ placeholder="Custom amount" value={amount} onChange={(e) => setAmount(e.target.value)} - className="w-full" + className="w-full text-sm" />