bug: show notice on NIP5 orders
This commit is contained in:
@ -38,7 +38,8 @@ export interface LNURLTipProps {
|
|||||||
svc?: string,
|
svc?: string,
|
||||||
show?: boolean,
|
show?: boolean,
|
||||||
invoice?: string, // shortcut to invoice qr tab
|
invoice?: string, // shortcut to invoice qr tab
|
||||||
title?: string
|
title?: string,
|
||||||
|
notice?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function LNURLTip(props: LNURLTipProps) {
|
export default function LNURLTip(props: LNURLTipProps) {
|
||||||
@ -208,6 +209,7 @@ export default function LNURLTip(props: LNURLTipProps) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="invoice">
|
<div className="invoice">
|
||||||
|
{props.notice && <b className="error">{props.notice}</b>}
|
||||||
<QrCode data={pr} link={`lightning:${pr}`} />
|
<QrCode data={pr} link={`lightning:${pr}`} />
|
||||||
<div className="actions">
|
<div className="actions">
|
||||||
{pr && (
|
{pr && (
|
||||||
|
@ -177,7 +177,12 @@ export default function Nip5Service(props: Nip05ServiceProps) {
|
|||||||
{availabilityResponse?.available === false && !registerStatus && <div className="flex">
|
{availabilityResponse?.available === false && !registerStatus && <div className="flex">
|
||||||
<b className="error">Not available: {mapError(availabilityResponse.why!, availabilityResponse.reasonTag || null)}</b>
|
<b className="error">Not available: {mapError(availabilityResponse.why!, availabilityResponse.reasonTag || null)}</b>
|
||||||
</div>}
|
</div>}
|
||||||
<LNURLTip invoice={registerResponse?.invoice} show={showInvoice} onClose={() => setShowInvoice(false)} title={`Buying ${handle}@${domain}`} />
|
<LNURLTip
|
||||||
|
invoice={registerResponse?.invoice}
|
||||||
|
show={showInvoice}
|
||||||
|
onClose={() => setShowInvoice(false)}
|
||||||
|
title={`Buying ${handle}@${domain}`}
|
||||||
|
notice="DO NOT CLOSE THIS POPUP OR YOUR ORDER WILL GET STUCK"/>
|
||||||
{registerStatus?.paid && <div className="flex f-col">
|
{registerStatus?.paid && <div className="flex f-col">
|
||||||
<h4>Order Paid!</h4>
|
<h4>Order Paid!</h4>
|
||||||
<p>Your new NIP-05 handle is: <code>{handle}@{domain}</code></p>
|
<p>Your new NIP-05 handle is: <code>{handle}@{domain}</code></p>
|
||||||
|
Reference in New Issue
Block a user