diff --git a/src/components/Project/ManageProjectInfo.jsx b/src/components/Project/ManageProjectInfo.jsx index 0380130f..5d56c171 100644 --- a/src/components/Project/ManageProjectInfo.jsx +++ b/src/components/Project/ManageProjectInfo.jsx @@ -3,6 +3,7 @@ import { useForm, Controller } from "react-hook-form"; import { zodResolver } from "@hookform/resolvers/zod"; import { z } from "zod"; import Label from "../common/Label"; +import DatePicker from "../common/DatePicker"; const currentDate = new Date().toLocaleDateString('en-CA'); const formatDate = (date) => { @@ -214,42 +215,42 @@ const ManageProjectInfo = ({ project, handleSubmitForm, onClose, isPending }) => - + {errors.startDate && ( -
+
{errors.startDate.message}
)}
+
- + {errors.endDate && ( -
+
{errors.endDate.message}
)}
+