chore(web): migration svelte 5 syntax (#13883)

This commit is contained in:
Alex
2024-11-14 08:43:25 -06:00
committed by GitHub
parent 9203a61709
commit 0b3742cf13
310 changed files with 6435 additions and 4176 deletions

View File

@@ -1,9 +1,15 @@
<script lang="ts">
import Icon from '$lib/components/elements/icon.svelte';
import type { Snippet } from 'svelte';
import { fade } from 'svelte/transition';
export let title: string | undefined = undefined;
export let icon: string | undefined = undefined;
interface Props {
title?: string | undefined;
icon?: string | undefined;
children?: Snippet;
}
let { title = undefined, icon = undefined, children }: Props = $props();
</script>
<div
@@ -23,5 +29,5 @@
{/if}
</div>
{/if}
<slot />
{@render children?.()}
</div>