migrate: convert most components to svelte 5
This commit is contained in:
1 parent
d670f39f0a
commit
10ef4123da
225 files changed
+5441
-3341
No files matched your search
@@ -4,9 +4,14 @@
|
||||
import { profile } from '$lib/auth.js'
|
||||
import { toast } from 'mono-svelte'
|
||||
|
||||
export let community: CommunityView | undefined = undefined
|
||||
interface Props {
|
||||
community?: CommunityView | undefined;
|
||||
children?: import('svelte').Snippet<[any]>;
|
||||
}
|
||||
|
||||
let subscribing = false
|
||||
let { community = undefined, children }: Props = $props();
|
||||
|
||||
let subscribing = $state(false)
|
||||
|
||||
async function subscribe(
|
||||
id: number | undefined = community?.community.id,
|
||||
@@ -33,4 +38,4 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<slot {subscribe} {subscribing} />
|
||||
{@render children?.({ subscribe, subscribing, })}
|
||||
Reference in new issue
Block a user