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

+12 -5
View File
@@ -1,18 +1,25 @@
<script lang="ts">
import FormattedNumber from "../util/FormattedNumber.svelte"
import FormattedNumber from '../util/FormattedNumber.svelte'
export let label: string
export let content: string
export let formatted: boolean = false
export let labelClass: string = ''
export let contentClass: string = ''
let clazz: string = ''
export { clazz as class }
</script>
<div class="flex flex-col {$$props.class}">
<span class="text-slate-600 dark:text-zinc-400 text-xs {$$props.labelClass}">{label}</span>
<span class="text-base {$$props.contentClass}">
<div class="flex flex-col {clazz}">
<span class="text-slate-600 dark:text-zinc-400 text-xs {labelClass}">
{label}
</span>
<span class="text-base {contentClass}">
{#if formatted}
<FormattedNumber number={Number(content)} />
{:else}
{content}
{/if}
</span>
</div>
</div>