Skip to content

Commit

Permalink
Merge branch 'remove-cb-lightning-on-href' of https://github.com/B2Bi…
Browse files Browse the repository at this point in the history
…tcoin/beBOP into admin-qr-codeless-order
  • Loading branch information
ithiame committed Dec 4, 2024
2 parents 6878fdb + 9e9d669 commit 19b34d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/routes/(app)/order/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
{/if}

{#if payment.status === 'pending'}
{#if payment.method === 'lightning' || payment.method === 'card'}
{#if payment.method === 'lightning'}
<a
href={lightningPaymentQrCodeString(
payment.address ?? '',
Expand All @@ -296,6 +296,13 @@
/></a
>
{/if}
{#if payment.method === 'card'}
<img
src="{$page.url.pathname}/payment/{payment.id}/qrcode"
class="w-96 h-96"
alt="QR code"
/>
{/if}
{#if payment.method === 'bitcoin' && payment.address}
<span class="body-hyperlink font-light italic">{t('order.clickQR')}</span>
<a
Expand Down

0 comments on commit 19b34d8

Please sign in to comment.