{t('Scan to pay with a Lightning wallet')}
diff --git a/src/components/PaytoDialog/index.tsx b/src/components/PaytoDialog/index.tsx index 34164303..27546e0e 100644 --- a/src/components/PaytoDialog/index.tsx +++ b/src/components/PaytoDialog/index.tsx @@ -3,6 +3,7 @@ import { Dialog, DialogContent, DialogDescription, + DialogFooter, DialogHeader, DialogTitle } from '@/components/ui/dialog' @@ -32,7 +33,7 @@ import { } from '@/lib/payto' import { cn } from '@/lib/utils' import { useNostr } from '@/providers/NostrProvider' -import { buildPostPaymentContext, type PostPaymentContext } from '@/lib/post-payment-context' +import { mergePostPaymentContext, type PostPaymentContext } from '@/lib/post-payment-context' import { NostrEvent } from 'nostr-tools' import LightningInvoiceSection from './LightningInvoiceSection' @@ -52,7 +53,7 @@ export default function PaytoDialog({ type: string authority: string paytoUri: string - /** When set, closing the dialog offers a post-payment message prompt to this pubkey. */ + /** When set, the dialog offers a post-payment message prompt to this pubkey. */ recipientPubkey?: string /** Note or profile context for superchat placement (kind 9740). */ referencedEvent?: NostrEvent @@ -63,41 +64,54 @@ export default function PaytoDialog({ }) { const { t } = useTranslation() const { pubkey: selfPubkey } = useNostr() + const sendMessageRef = useRef