From 7a4a59b044026f139ecfb144d1e24664d0f6f4cc Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 6 Mar 2026 22:52:49 -0800 Subject: remove all svelte/legacy usage (run, preventDefault) Replace run() with $effect(), preventDefault() wrapper with inline e.preventDefault(), and remove unused imports across 13 files. Co-Authored-By: Claude Opus 4.6 --- src/components/Account.svelte | 1 - src/components/ItemForm.svelte | 4 +--- src/components/Lnurlp.svelte | 2 -- src/components/LocaleSelector.svelte | 2 -- 4 files changed, 1 insertion(+), 8 deletions(-) (limited to 'src/components') diff --git a/src/components/Account.svelte b/src/components/Account.svelte index 2d4b1e48..068afd0c 100644 --- a/src/components/Account.svelte +++ b/src/components/Account.svelte @@ -5,7 +5,6 @@ import PhHandCoinsBold from "virtual:icons/ph/hand-coins-bold"; import PhPaperPlaneRightBold from "virtual:icons/ph/paper-plane-right-bold"; import { bytesToHex } from "@noble/hashes/utils.js"; - import { run } from "svelte/legacy"; import { onMount } from "svelte"; import { goto } from "$app/navigation"; import Balance from "$comp/Balance.svelte"; diff --git a/src/components/ItemForm.svelte b/src/components/ItemForm.svelte index a64cb7ee..3003597d 100644 --- a/src/components/ItemForm.svelte +++ b/src/components/ItemForm.svelte @@ -1,6 +1,4 @@