- added settings page and function

- add Role Ring for avatar and display role for user nav
This commit is contained in:
2026-01-06 21:37:53 +07:00
parent 8146565d2c
commit a4e96fe045
64 changed files with 2828 additions and 726 deletions

View 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>;