Skip to content

Commit e607ea4

Browse files
committed
use FORM
1 parent 75b3157 commit e607ea4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/routes/(console)/onboarding/create-project/+page.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<script lang="ts">
22
import { Card, Layout, Button } from '@appwrite.io/pink-svelte';
3+
import { Form } from '$lib/elements/forms';
34
import { isCloud } from '$lib/system';
45
import { sdk } from '$lib/stores/sdk';
56
import { ID, Region } from '@appwrite.io/console';
@@ -97,7 +98,7 @@
9798
class="u-only-dark"
9899
alt="Appwrite Logo" />
99100
<Card.Base variant="primary" padding="l">
100-
<form on:submit|preventDefault={createProject}>
101+
<Form noStyle onSubmit={createProject}>
101102
<CreateProject
102103
showTitle
103104
bind:projectName
@@ -112,7 +113,7 @@
112113
</Layout.Stack>
113114
{/snippet}
114115
</CreateProject>
115-
</form>
116+
</Form>
116117
</Card.Base>
117118
{/if}
118119
</div>

0 commit comments

Comments
 (0)