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
@@ -6,6 +6,7 @@
import { fly } from 'svelte/transition'
import { page as pageData } from '$app/state'
import { invalidate } from '$app/navigation'
import { SvelteURLSearchParams } from 'svelte/reactivity'
interface Props {
page?: number
@@ -27,8 +28,8 @@
let customHref = (href?: string) => {
if (href?.startsWith('?')) {
const current = new URLSearchParams(pageData.url.searchParams)
const newParams = new URLSearchParams(href)
const current = new SvelteURLSearchParams(pageData.url.searchParams)
const newParams = new SvelteURLSearchParams(href)
current.delete(Array.from(newParams.keys())[0])
current.append(
@@ -45,6 +45,7 @@ import {
ViewColumns,
type IconSource,
} from 'svelte-hero-icons'
import { SvelteURL } from 'svelte/reactivity'
export interface Group {
name: string
@@ -411,7 +412,7 @@ export function getGroups(
f.community.name,
f.community.actor_id,
)}`,
detail: new URL(f.community.actor_id).hostname,
detail: new SvelteURL(f.community.actor_id).hostname,
})) ?? [],
},
]