refactor: complete i18n rename recipients to people, finalize tests
This commit is contained in:
@@ -10,6 +10,7 @@ const defaultPersonSchemaCopy: PersonSchemaCopy = {
|
||||
departmentRequired: "Department is required",
|
||||
emailInvalid: "Email format is invalid",
|
||||
idRequired: "ID is required",
|
||||
userIdInvalid: "User ID must be a valid UUID",
|
||||
}
|
||||
|
||||
const personDepartments = [
|
||||
@@ -37,7 +38,11 @@ function buildPersonBaseSchema(copy: PersonSchemaCopy) {
|
||||
}),
|
||||
email: z.string().optional().nullable(),
|
||||
phone: z.string().optional().nullable(),
|
||||
userId: z.string().uuid().optional().nullable(),
|
||||
userId: z
|
||||
.string()
|
||||
.uuid({ error: copy.userIdInvalid })
|
||||
.optional()
|
||||
.nullable(),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user