From 467d5d4b1388c9143ab08cc310035db7de074ff2 Mon Sep 17 00:00:00 2001 From: Pramod Mahajan Date: Sun, 29 Jun 2025 00:55:02 +0530 Subject: [PATCH] integrate React Query for project details and real-time updates --- src/components/Project/ManageProjectInfo.jsx | 25 +- src/components/Project/ProjectCard.jsx | 165 +++--- src/components/Project/Teams.jsx | 148 +++-- src/hooks/useProjects.js | 590 +++++++++++++------ src/pages/project/ProjectDetails.jsx | 86 +-- src/pages/project/ProjectList.jsx | 133 ++--- src/pages/project/ProjectListView.jsx | 149 +++-- 7 files changed, 789 insertions(+), 507 deletions(-) diff --git a/src/components/Project/ManageProjectInfo.jsx b/src/components/Project/ManageProjectInfo.jsx index 4b5d6abf..f042abfa 100644 --- a/src/components/Project/ManageProjectInfo.jsx +++ b/src/components/Project/ManageProjectInfo.jsx @@ -122,18 +122,9 @@ const ManageProjectInfo = ({ project, handleSubmitForm, onClose }) => { }; return ( -
-
-
- + +
+
{project?.id ? "Edit Project" : "Create Project"} @@ -148,7 +139,7 @@ const ManageProjectInfo = ({ project, handleSubmitForm, onClose }) => { type="text" id="name" name="name" - className="form-control" + className="form-control form-control-sm" placeholder="Project Name" {...register("name")} /> @@ -169,7 +160,7 @@ const ManageProjectInfo = ({ project, handleSubmitForm, onClose }) => { type="text" id="shortName" name="shortName" - className="form-control" + className="form-control form-control-sm" placeholder="Short Name" {...register("shortName")} /> @@ -190,7 +181,7 @@ const ManageProjectInfo = ({ project, handleSubmitForm, onClose }) => { type="text" id="contactPerson" name="contactPerson" - className="form-control" + className="form-control form-control-sm" placeholder="Contact Person" maxLength={50} {...register("contactPerson")} @@ -252,7 +243,7 @@ const ManageProjectInfo = ({ project, handleSubmitForm, onClose }) => {