feat: add profile tooltips

This commit is contained in:
David Nguyen
2024-06-08 13:22:51 +10:00
parent 95a600001a
commit d8d9a3be77
5 changed files with 115 additions and 43 deletions

View File

@ -19,7 +19,12 @@ export const ZUpdateProfileMutationSchema = z.object({
});
export const ZUpdatePublicProfileMutationSchema = z.object({
bio: z.string().max(MAX_PROFILE_BIO_LENGTH).optional(),
bio: z
.string()
.max(MAX_PROFILE_BIO_LENGTH, {
message: `Bio must be shorter than ${MAX_PROFILE_BIO_LENGTH + 1} characters`,
})
.optional(),
enabled: z.boolean().optional(),
url: z
.string()