Add manual invoice payment

This commit is contained in:
Jon Staab
2026-02-25 14:25:59 -08:00
parent f60f5af424
commit 96d2efebc8
3 changed files with 227 additions and 2 deletions
+2 -2
View File
@@ -4,8 +4,8 @@
import {session, loadZapperForPubkey} from "@welshman/app"
import Button from "@lib/components/Button.svelte"
import Zap from "@app/components/Zap.svelte"
import ZapInvoice from "@app/components/ZapInvoice.svelte"
import InfoZapperError from "@app/components/InfoZapperError.svelte"
import WalletConnect from "@app/components/WalletConnect.svelte"
import {pushModal} from "@app/util/modal"
type Props = {
@@ -31,7 +31,7 @@
} else if ($session?.wallet) {
pushModal(Zap, {url, pubkey: event.pubkey, eventId: event.id}, {replaceState})
} else {
pushModal(WalletConnect, {}, {replaceState})
pushModal(ZapInvoice, {url, pubkey: event.pubkey, eventId: event.id}, {replaceState})
}
} finally {
loading = false