From 3cfac9a2bb568628f45f8e8d22b3e97a63451fe6 Mon Sep 17 00:00:00 2001 From: "pramod.mahajan" Date: Tue, 18 Nov 2025 11:08:33 +0530 Subject: [PATCH] fixed - useProject (infra) params --- src/components/ServiceProject/JobList.jsx | 28 +++++++----- src/components/ServiceProject/Jobs.jsx | 2 +- src/components/ServiceProject/ManageJob.jsx | 44 +++++++++++++++++-- .../ServiceProject/ManageJobTicket.jsx | 16 +++---- .../ServiceProject/ServiceProjectSchema.jsx | 3 ++ src/components/collections/Comment.jsx | 2 +- src/components/common/HoverPopup.jsx | 28 +++++++----- src/hooks/useProjects.js | 8 ++-- src/hooks/useServiceProject.jsx | 1 + src/repositories/ProjectRepository.jsx | 2 +- 10 files changed, 93 insertions(+), 41 deletions(-) diff --git a/src/components/ServiceProject/JobList.jsx b/src/components/ServiceProject/JobList.jsx index 5665511e..fd0122ef 100644 --- a/src/components/ServiceProject/JobList.jsx +++ b/src/components/ServiceProject/JobList.jsx @@ -36,9 +36,7 @@ const JobList = () => { maxWidth: "100%", width: "210px", }} - onClick={() => - setSelectedJob({ showCanvas: true, job: e?.id }) - } + onClick={() => setSelectedJob({ showCanvas: true, job: e?.id })} > {e?.title} @@ -69,7 +67,10 @@ const JobList = () => { const badgeColor = statusColorMap[statusName] || "label-secondary"; return ( - + {statusName} ); @@ -90,8 +91,8 @@ const JobList = () => { ); }, isAlwaysVisible: true, - className: "text-start d-none d-sm-table-cell" - } + className: "text-start d-none d-sm-table-cell", + }, ]; return ( @@ -105,7 +106,9 @@ const JobList = () => { {jobGrid.map((col) => (
{col.label}
@@ -120,9 +123,15 @@ const JobList = () => { {Array.isArray(data?.data) && data.data.length > 0 ? ( data.data.map((row, i) => ( - + {jobGrid.map((col) => ( - + + setSelectedJob({ showCanvas: true, job: row?.id }) + }> {col.getValue(row)} ))} @@ -135,7 +144,6 @@ const JobList = () => {
- {/* View always visible */}