mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-07-16 13:09:13 +00:00
feat: auth2 flow skeleton
This commit is contained in:
parent
b4b2eb9055
commit
d383fcc949
20 changed files with 126 additions and 509 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue