diff --git a/src/components/ServiceProject/ManageServiceProject.jsx b/src/components/ServiceProject/ManageServiceProject.jsx index f16b18eb..1d5b0e66 100644 --- a/src/components/ServiceProject/ManageServiceProject.jsx +++ b/src/components/ServiceProject/ManageServiceProject.jsx @@ -222,10 +222,7 @@ const ManageServiceProject = ({ serviceProjectId, onClose }) => { type="text" className="form-control form-control-sm" {...register("contactName")} - placeholder="Enter Employee name.." - onInput={(e) => { - e.target.value = e.target.value.replace(/[^A-Za-z ]/g, ""); - }} + placeholder="Enter Employee name.." /> {errors?.contactName && ( {errors.contactName.message} diff --git a/src/components/ServiceProject/ServiceProjectBranch/ServiceBranch.jsx b/src/components/ServiceProject/ServiceProjectBranch/ServiceBranch.jsx index c1d17365..b33e7cce 100644 --- a/src/components/ServiceProject/ServiceProjectBranch/ServiceBranch.jsx +++ b/src/components/ServiceProject/ServiceProjectBranch/ServiceBranch.jsx @@ -240,6 +240,7 @@ const ServiceBranch = () => { No Branch Found diff --git a/src/components/ServiceProject/ServiceProjectSchema.jsx b/src/components/ServiceProject/ServiceProjectSchema.jsx index 589f1497..8e513eec 100644 --- a/src/components/ServiceProject/ServiceProjectSchema.jsx +++ b/src/components/ServiceProject/ServiceProjectSchema.jsx @@ -22,8 +22,7 @@ export const projectSchema = z.object({ contactName: z .string() .trim() - .min(1, "Contact name is required") - .regex(/^[A-Za-z\s]+$/, "Contact name can contain only letters"), + .min(1, "Contact name is required"), contactPhone: z .string() diff --git a/src/components/ServiceProject/ServiceProjectTeam/ServiceProjectTeamList.jsx b/src/components/ServiceProject/ServiceProjectTeam/ServiceProjectTeamList.jsx index 786ef198..a87ee7ec 100644 --- a/src/components/ServiceProject/ServiceProjectTeam/ServiceProjectTeamList.jsx +++ b/src/components/ServiceProject/ServiceProjectTeam/ServiceProjectTeamList.jsx @@ -77,6 +77,7 @@ const ServiceProjectTeamList = () => { {isLoading ? ( @@ -85,6 +86,7 @@ const ServiceProjectTeamList = () => { )} + )} diff --git a/src/components/purchase/PurchasePartyDetails.jsx b/src/components/purchase/PurchasePartyDetails.jsx index 08bf8826..fd776961 100644 --- a/src/components/purchase/PurchasePartyDetails.jsx +++ b/src/components/purchase/PurchasePartyDetails.jsx @@ -26,7 +26,7 @@ const PurchasePartyDetails = () => { } = useAppFormContext(); return ( -
+
{/* Title */}