aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/LandingHeader.svelte2
-rw-r--r--src/lib/socket.js6
-rw-r--r--src/lib/store.js2
-rw-r--r--src/routes/invoice.svelte6
-rw-r--r--src/routes/receive.svelte10
5 files changed, 10 insertions, 16 deletions
diff --git a/src/components/LandingHeader.svelte b/src/components/LandingHeader.svelte
index 92558777..4da9a17e 100644
--- a/src/components/LandingHeader.svelte
+++ b/src/components/LandingHeader.svelte
@@ -1,6 +1,6 @@
<script>
import { goto } from '$app/navigation';
- import { scroll } from '$utils';
+ import { scroll } from '$lib/utils';
import { Icon } from '$comp';
export let howItWorks;
diff --git a/src/lib/socket.js b/src/lib/socket.js
index 448d8e88..38efd2ec 100644
--- a/src/lib/socket.js
+++ b/src/lib/socket.js
@@ -18,9 +18,9 @@ export const messages = (data) => ({
socket.send(JSON.stringify({ type: 'login', data: token }));
},
- login() {
- user.set(data);
- }
+ login() {
+ user.set(data);
+ }
});
const initialReconnectDelay = 1000;
diff --git a/src/lib/store.js b/src/lib/store.js
index 0a9301ff..120acc77 100644
--- a/src/lib/store.js
+++ b/src/lib/store.js
@@ -1,4 +1,4 @@
-import { writable } from "svelte/store";
+import { writable } from 'svelte/store';
export const rate = writable();
export const user = writable();
diff --git a/src/routes/invoice.svelte b/src/routes/invoice.svelte
index 7df1cb99..b8f9e54b 100644
--- a/src/routes/invoice.svelte
+++ b/src/routes/invoice.svelte
@@ -2,7 +2,7 @@
import { rate, user } from '$lib/store';
import { onMount } from 'svelte';
- export let text;
+ export let text;
</script>
QR code
@@ -13,8 +13,6 @@ QR code
{$user?.username}
-
{#each $user.payments as p}
- {p.amount}<br/>
+ {p.amount}<br />
{/each}
-
diff --git a/src/routes/receive.svelte b/src/routes/receive.svelte
index 7aa8536f..73d3cc06 100644
--- a/src/routes/receive.svelte
+++ b/src/routes/receive.svelte
@@ -1,7 +1,7 @@
<script>
// in the future we will want to allow users to set their fiat currency in the settings
import { AppHeader, Icon } from '$comp';
- import { goto } from "$app/navigation";
+ import { goto } from '$app/navigation';
let useFiat = true;
let amountFiat = 0;
@@ -63,8 +63,8 @@
<!-- buttons -->
<div class="space-y-3">
<button
- class="bg-black text-white rounded-xl w-full h-[48px] flex justify-center items-center font-semibold text-sm" on:click={() => goto('/invoice')}
- ><Icon icon="qr" style="mr-2" /> Show QR</button
+ class="bg-black text-white rounded-xl w-full h-[48px] flex justify-center items-center font-semibold text-sm"
+ on:click={() => goto('/invoice')}><Icon icon="qr" style="mr-2" /> Show QR</button
>
<button
class="bg-primary rounded-xl w-full h-[48px] flex justify-center items-center font-semibold text-sm"
@@ -73,7 +73,3 @@
</div>
</div>
</div>
-
-<!-- step 2 customer adds tip and pays -->
-
-<!-- step 3 success screen -->