fix: add input max length for org and project name

This commit is contained in:
Salman
2024-02-28 15:59:23 +05:30
parent 449617d271
commit db9f21be87
6 changed files with 10 additions and 4 deletions
@@ -10,7 +10,11 @@ import { OrgPermissionActions, OrgPermissionSubjects, useOrganization } from "@a
import { useUpdateOrg } from "@app/hooks/api";
const formSchema = yup.object({
name: yup.string().required().label("Project Name")
name: yup
.string()
.required()
.label("Organization Name")
.max(64, "Too long, Maximum length is 64 characters")
});
type FormData = yup.InferType<typeof formSchema>;
@@ -13,7 +13,7 @@ import { useToggle } from "@app/hooks";
import { useRenameWorkspace } from "@app/hooks/api";
const formSchema = yup.object({
name: yup.string().required().label("Project Name")
name: yup.string().required().label("Project Name").max(64, "Too long, Maximum length is 64 characters"),
});
type FormData = yup.InferType<typeof formSchema>;