diff options
| author | secondl1ght <[email protected]> | 2022-07-30 00:41:39 -0600 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-07-30 00:41:39 -0600 |
| commit | 8b0d28fecb0e38ac9c85e5e3e7edecc857773f51 (patch) | |
| tree | 589a390b868185dbf7a7924f852da082f128f4b9 /src | |
| parent | b972aa21389c20ab9da1a627612bbc1dafeec366 (diff) | |
| download | coinos-ui-8b0d28fecb0e38ac9c85e5e3e7edecc857773f51.tar.gz coinos-ui-8b0d28fecb0e38ac9c85e5e3e7edecc857773f51.zip | |
format
Diffstat (limited to 'src')
| -rw-r--r-- | src/routes/invoice/[amount].js | 6 | ||||
| -rw-r--r-- | src/routes/invoice/[amount].svelte | 4 | ||||
| -rw-r--r-- | src/routes/receive.svelte | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/routes/invoice/[amount].js b/src/routes/invoice/[amount].js index f75a1672..f9b31211 100644 --- a/src/routes/invoice/[amount].js +++ b/src/routes/invoice/[amount].js @@ -4,10 +4,10 @@ const username = 'bob', network = 'lightning'; export async function GET({ params }) { - let { amount } = params; - console.log("AMT", amount); + let { amount } = params; + console.log('AMT', amount); let { text } = await post('/lightning/invoice', { amount }); - console.log("TXT", text); + console.log('TXT', text); await post('/invoice', { invoice: { text, network }, user: { username } }); return { body: { amount, text } }; diff --git a/src/routes/invoice/[amount].svelte b/src/routes/invoice/[amount].svelte index dd6ed7fa..4c1ec199 100644 --- a/src/routes/invoice/[amount].svelte +++ b/src/routes/invoice/[amount].svelte @@ -6,7 +6,7 @@ import { onMount } from 'svelte'; export let text; - export let amount; + export let amount; let tipPercent = 0; const setRate = ($invoiceAmountFiat / $invoiceAmount) * 100000000; @@ -64,7 +64,7 @@ onMount(async () => { if (browser) { - let { default: QRCodeStyling } = await import('qr-code-styling'); + let { default: QRCodeStyling } = await import('qr-code-styling'); const qrCode = new QRCodeStyling({ width: window.screen.width < 640 ? 250 : 300, type: 'svg', diff --git a/src/routes/receive.svelte b/src/routes/receive.svelte index ff156783..e78934a9 100644 --- a/src/routes/receive.svelte +++ b/src/routes/receive.svelte @@ -160,7 +160,7 @@ 0 ? 'opacity-50' : 'opacity-100'}" - on:click={() => goto(`/invoice/${$invoiceAmount}`)} + on:click={() => goto(`/invoice/${$invoiceAmount}`)} disabled={$invoiceAmount === 0}><Icon icon="qr" style="mr-2" /> Show QR</button > <button |
