aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-08 15:19:04 -0800
committerAdam Soltys <[email protected]>2024-11-08 15:19:04 -0800
commit84fb4b209a2650b2a93f3208ee9a23a44d8283c7 (patch)
tree8687566bd8eac12de99439d448773d8ce5dc34b4 /src/routes/(app)/send
parent32fcc461cd43c8907df5e306d520bb671307eab1 (diff)
downloadcoinos-ui-84fb4b209a2650b2a93f3208ee9a23a44d8283c7.tar.gz
coinos-ui-84fb4b209a2650b2a93f3208ee9a23a44d8283c7.zip
svelte 5 fixups
Diffstat (limited to 'src/routes/(app)/send')
-rw-r--r--src/routes/(app)/send/[...text]/+page.svelte27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/routes/(app)/send/[...text]/+page.svelte b/src/routes/(app)/send/[...text]/+page.svelte
index 7ec76bc9..6b93b94b 100644
--- a/src/routes/(app)/send/[...text]/+page.svelte
+++ b/src/routes/(app)/send/[...text]/+page.svelte
@@ -1,5 +1,5 @@
<script>
- import { run } from 'svelte/legacy';
+ import { run } from "svelte/legacy";
import { page } from "$app/stores";
import { fly } from "svelte/transition";
@@ -17,7 +17,10 @@
let { contacts } = data;
- let el = $state(), text = $state(), pasted = $state(), w = $state();
+ let el = $state(),
+ text = $state(),
+ pasted = $state(),
+ w = $state();
let keypress = (e) =>
e.key === "Enter" ? e.preventDefault() || el.click() : (pasted = false);
@@ -60,7 +63,7 @@
bind:value={text}
onpaste={() => (pasted = true)}
autocapitalize="none"
-></textarea>
+ ></textarea>
<div class="flex gap-2">
<a href="/scan" class="contents">
@@ -95,18 +98,12 @@
{$t("user.send.contacts")}
</h1>
<div>
- {#each contacts as c}
- <a href={`/pay/${c.username}`}>
- <div class="border-b p-2 last:border-b-0 hover:bg-base-200">
- <div class="flex">
- <div>
- <div class="flex">
- <Avatar user={c} size={20} disabled={true} />
- <div class="my-auto text-left">
- <p class="ml-1 text-lg break-words">{c.username}</p>
- </div>
- </div>
- </div>
+ {#each contacts as c, i}
+ <a href={`/pay/${c.username}`} class="contents">
+ <div class="flex hover:bg-base-200 p-2">
+ <Avatar user={c} size={20} disabled={true} />
+ <div class="my-auto text-left">
+ <p class="ml-1 text-lg break-words">{c.username}</p>
</div>
</div>
</a>