- added settings page and function
- add Role Ring for avatar and display role for user nav
This commit is contained in:
13
src/service/profile.schema.ts
Normal file
13
src/service/profile.schema.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import i18n from '@/lib/i18n';
|
||||
import z from 'zod';
|
||||
|
||||
export const profileUpdateSchema = z.object({
|
||||
name: z.string().nonempty(
|
||||
i18n.t('profile.messages.is_required', {
|
||||
field: i18n.t('profile.form.name'),
|
||||
}),
|
||||
),
|
||||
image: z.instanceof(File).optional(),
|
||||
});
|
||||
|
||||
export type ProfileInput = z.infer<typeof profileUpdateSchema>;
|
||||
Reference in New Issue
Block a user