Add “Organization Type” Column in Project > Organization Page
This commit is contained in:
parent
f0ce1e30fb
commit
465c42f18c
@ -25,12 +25,12 @@ const ProjectAssignedOrgs = () => {
|
|||||||
),
|
),
|
||||||
align: "text-start",
|
align: "text-start",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: "service",
|
key: "service",
|
||||||
label: "Service Name",
|
label: "Service Name",
|
||||||
getValue: (org) => (
|
getValue: (org) => (
|
||||||
<div className="d-flex gap-2 py-1 ">
|
<div className="d-flex gap-2 py-1 ">
|
||||||
{org?.service?.name}
|
{org?.service?.name}
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
align: "text-start",
|
align: "text-start",
|
||||||
@ -48,7 +48,20 @@ const ProjectAssignedOrgs = () => {
|
|||||||
),
|
),
|
||||||
align: "text-center",
|
align: "text-center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
key: "organizationType",
|
||||||
|
label: "Organization Type",
|
||||||
|
getValue: (org) => (
|
||||||
|
<span
|
||||||
|
className="text-truncate d-inline-block"
|
||||||
|
style={{ maxWidth: "200px" }}
|
||||||
|
>
|
||||||
|
{org?.organizationType || "N/A"}
|
||||||
|
</span>
|
||||||
|
),
|
||||||
|
align: "text-center",
|
||||||
|
},
|
||||||
|
{
|
||||||
key: "assignedDate",
|
key: "assignedDate",
|
||||||
label: "Assigned Date",
|
label: "Assigned Date",
|
||||||
getValue: (org) => (
|
getValue: (org) => (
|
||||||
@ -56,17 +69,17 @@ const ProjectAssignedOrgs = () => {
|
|||||||
className="text-truncate d-inline-block"
|
className="text-truncate d-inline-block"
|
||||||
style={{ maxWidth: "200px" }}
|
style={{ maxWidth: "200px" }}
|
||||||
>
|
>
|
||||||
{/* {org?.assignedDate || "N/A"} */}
|
|
||||||
{formatUTCToLocalTime(org?.assignedDate)}
|
{formatUTCToLocalTime(org?.assignedDate)}
|
||||||
</span>
|
</span>
|
||||||
),
|
),
|
||||||
align: "text-center",
|
align: "text-center",
|
||||||
},
|
},
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
if (isLoading) return <div>Loading...</div>;
|
if (isLoading) return <div>Loading...</div>;
|
||||||
if (isError) return <div>{error.message}</div>;
|
if (isError) return <div>{error.message}</div>;
|
||||||
|
console.log("kartik", data)
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="dataTables_wrapper no-footer mx-5 pb-2 page">
|
<div className="dataTables_wrapper no-footer mx-5 pb-2 page">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user