Skip to content

Commit 90f1516

Browse files
committed
improve
1 parent 3972725 commit 90f1516

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/layout/createProject.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@
1010
import { page } from '$app/state';
1111
import type { Models } from '@appwrite.io/console';
1212
import { filterRegions } from '$lib/helpers/regions';
13+
import type { Snippet } from 'svelte';
1314
1415
let projectName = $state('');
1516
let id = $state('');
1617
let regions = $state<Array<Models.ConsoleRegion>>([]);
1718
let region = $state('');
1819
let showTitle = $state(true);
1920
let projects = $state<number | undefined>(undefined);
21+
let { submit }: { submit?: Snippet } = $props();
2022
2123
let showCustomId = $state(false);
2224
let projectsLimited = $derived(
@@ -86,6 +88,6 @@
8688
{/if}
8789
</Layout.Stack>
8890
</Layout.Stack>
89-
{@render globalThis.$slots.submit?.()}
91+
{@render submit?.()}
9092
</Layout.Stack>
9193
</form>

0 commit comments

Comments
 (0)