migrate: change settings from a store to a state
This commit is contained in:
1 parent
ffcd9faa96
commit
d597349887
128 files changed
+1010
-1144
No files matched your search
@@ -1,15 +1,15 @@
|
||||
<script lang="ts">
|
||||
import { getClient } from '$lib/lemmy.js'
|
||||
import type { CommunityView, SubscribedType } from 'lemmy-js-client'
|
||||
import { profile } from '$lib/auth.js'
|
||||
import { profile } from '$lib/auth.svelte.js'
|
||||
import { toast } from 'mono-svelte'
|
||||
|
||||
interface Props {
|
||||
community?: CommunityView | undefined;
|
||||
children?: import('svelte').Snippet<[any]>;
|
||||
community?: CommunityView | undefined
|
||||
children?: import('svelte').Snippet<[any]>
|
||||
}
|
||||
|
||||
let { community = undefined, children }: Props = $props();
|
||||
let { community = undefined, children }: Props = $props()
|
||||
|
||||
let subscribing = $state(false)
|
||||
|
||||
@@ -38,4 +38,4 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
{@render children?.({ subscribe, subscribing, })}
|
||||
{@render children?.({ subscribe, subscribing })}
|
||||
Reference in new issue
Block a user