prep: replace $$props.class with props

This commit is contained in:
Xylight committed 2024-10-23 19:55:20 -07:00
1 parent 3ca72662ca
commit 0718c8e0c6
69 files changed
+383 -214

No files matched your search

@@ -16,12 +16,15 @@
export let badges = {
nsfw: false,
}
let clazz: string = ''
export let instanceClass: string = ''
export { clazz as class }
</script>
<a
{...$$restProps}
class="items-center flex flex-row gap-2 hover:underline max-w-full min-w-0 {$$props.class ||
''}"
class="items-center flex flex-row gap-2 hover:underline max-w-full min-w-0 {clazz}"
href="/c/{community.name}@{new URL(community.actor_id).hostname}"
data-sveltekit-preload-data="tap"
>
@@ -42,7 +45,7 @@
{#if showInstance}
<span
class="text-slate-500 dark:text-zinc-500 font-normal
instance-text flex-shrink {$$props.instanceClass || ''}"
instance-text flex-shrink {instanceClass || ''}"
>
@{new URL(community.actor_id).hostname}
</span>