feat: auth2 flow skeleton

This commit is contained in:
Bart van der Braak 2024-02-06 08:36:31 +01:00
parent b4b2eb9055
commit d383fcc949
20 changed files with 126 additions and 509 deletions

View file

@ -2,12 +2,6 @@
import { z } from 'zod';
export const accountFormSchema = z.object({
name: z
.string({
required_error: 'Required.'
})
.min(2, 'Name must be at least 2 characters.')
.max(30, 'Name must not be longer than 30 characters')
});
export type AccountFormSchema = typeof accountFormSchema;
@ -31,15 +25,5 @@
form={data}
debug={dev ? true : false}
>
<Form.Item>
<Form.Field name="name" {config}>
<Form.Label>Name</Form.Label>
<Form.Input placeholder={user?.name} />
<Form.Description>
This is the name that will be displayed on your profile and in emails.
</Form.Description>
<Form.Validation />
</Form.Field>
</Form.Item>
<Form.Button>Update account</Form.Button>
</Form.Root>