chore: indicate zap supported

This commit is contained in:
Kieran 2023-02-04 17:48:56 +00:00
parent afd9dc44d9
commit 6d7892ac66
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -240,11 +240,12 @@ export default function LNURLTip(props: LNURLTipProps) {
) )
} }
const defaultTitle = payService?.allowsNostr === true ? "⚡️ Send Zap!" : "⚡️ Send sats";
if (!show) return null; if (!show) return null;
return ( return (
<Modal onClose={onClose}> <Modal onClose={onClose}>
<div className="lnurl-tip" onClick={(e) => e.stopPropagation()}> <div className="lnurl-tip" onClick={(e) => e.stopPropagation()}>
<h2>{props.title || "⚡️ Send sats"}</h2> <h2>{props.title || defaultTitle}</h2>
{invoiceForm()} {invoiceForm()}
{error ? <p className="error">{error}</p> : null} {error ? <p className="error">{error}</p> : null}
{payInvoice()} {payInvoice()}