lint: use svelte/reactivity classes

This commit is contained in:
James Xylight committed 2025-08-03 10:17:12 -07:00
1 parent 9114c82f6a
commit 3802c46c8f
11 files changed
+31 -52

No files matched your search

+3 -2
View File
@@ -12,6 +12,7 @@
import { Button } from 'mono-svelte'
import { ArrowPath, Check, Icon, Inbox } from 'svelte-hero-icons'
import InboxItem from './InboxItem.svelte'
import { SvelteURLSearchParams } from 'svelte/reactivity'
let { data } = $props()
@@ -43,10 +44,10 @@
newParamString: string,
) {
// Create a new URLSearchParams object from the current search params
const updatedParams = new URLSearchParams(currentSearchParams)
const updatedParams = new SvelteURLSearchParams(currentSearchParams)
// Parse the new parameter string
const newParam = new URLSearchParams(newParamString)
const newParam = new SvelteURLSearchParams(newParamString)
// Get the key and value of the new parameter
const [key, value]: [string, string] = newParam.entries().next().value!