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

+6 -2
View File
@@ -22,12 +22,16 @@
import { iconOfLink } from '../navbar/link'
import { goto } from '$app/navigation'
import { page } from '$app/stores'
export let style: string = ''
let clazz: string = ''
export { clazz as class }
</script>
<nav
class="flex flex-col p-4 overflow-auto
gap-1 h-fit max-h-screen {$$props.class}"
style={$$props.style}
gap-1 h-fit max-h-screen {clazz}"
{style}
>
{#if $userSettings.dock.pins?.length ?? 0 > 0}
<div class="flex items-center flex-wrap gap-2 pl-1.5">
@@ -12,6 +12,8 @@
selected = $page.url.pathname == href
}
}
let clazz: string = ''
export { clazz as class }
</script>
<Button
@@ -23,7 +25,7 @@
on:contextmenu
class="font-normal block !origin-left border border-transparent {!selected
? 'text-slate-600 dark:text-zinc-400'
: ''} {$$props.class}"
: ''} {clazz}"
>
<slot {selected} name="icon" slot="prefix">
{#if icon}