Add sample form

This commit is contained in:
toqvist 2024-04-03 14:23:08 +02:00
parent 95243557c6
commit d8438e2d84

View File

@ -39,29 +39,29 @@ export function AddRetailerForm() {
return (
<div className="flex justify-center">
<div>
<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-8">
<FormField
control={form.control}
name="username"
render={({ field }) => (
<FormItem>
<FormLabel>Username</FormLabel>
<FormControl>
<Input placeholder="" {...field} />
</FormControl>
<FormDescription>
This is your public display name.
</FormDescription>
<FormMessage />
</FormItem>
)}
/>
<Button variant={"default"} type="submit">Submit</Button>
</form>
</Form>
</div>
<div>
<Form {...form}>
<form onSubmit={form.handleSubmit(onSubmit)} className="space-y-8">
<FormField
control={form.control}
name="username"
render={({ field }) => (
<FormItem>
<FormLabel>Username</FormLabel>
<FormControl>
<Input placeholder="" {...field} />
</FormControl>
<FormDescription>
This is your public display name.
</FormDescription>
<FormMessage />
</FormItem>
)}
/>
<Button variant={"default"} type="submit">Submit</Button>
</form>
</Form>
</div>
</div>
)
}