File tree Expand file tree Collapse file tree 1 file changed +17
-18
lines changed
src/routes/(console)/onboarding/create-project Expand file tree Collapse file tree 1 file changed +17
-18
lines changed Original file line number Diff line number Diff line change 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' ;
9798 class =" u-only-dark"
9899 alt =" Appwrite Logo" />
99100 <Card .Base variant =" primary" padding =" l" >
100- <CreateProject
101- showTitle
102- bind:projectName
103- bind:id ={projectId }
104- bind:region ={projectRegion }
105- regions ={$regionsStore ?.regions }>
106- {#snippet submit ()}
107- <Layout .Stack direction =" row" justifyContent =" flex-end" >
108- <Button .Button
109- on:click ={createProject }
110- type =" submit"
111- variant =" primary"
112- size =" s" >
113- Create
114- </Button .Button >
115- </Layout .Stack >
116- {/ snippet }
117- </CreateProject >
101+ <Form noStyle onSubmit ={createProject }>
102+ <CreateProject
103+ showTitle
104+ bind:projectName
105+ bind:id ={projectId }
106+ bind:region ={projectRegion }
107+ regions ={$regionsStore ?.regions }>
108+ {#snippet submit ()}
109+ <Layout .Stack direction =" row" justifyContent =" flex-end" >
110+ <Button .Button type =" submit" variant =" primary" size =" s" >
111+ Create
112+ </Button .Button >
113+ </Layout .Stack >
114+ {/ snippet }
115+ </CreateProject >
116+ </Form >
118117 </Card .Base >
119118 {/if }
120119</div >
You can’t perform that action at this time.
0 commit comments