diff --git a/src/components/projects/ProjectsList.tsx b/src/components/projects/ProjectsList.tsx
index 13a0afd..9044014 100644
--- a/src/components/projects/ProjectsList.tsx
+++ b/src/components/projects/ProjectsList.tsx
@@ -9,35 +9,31 @@ import TablePagination from '@mui/material/TablePagination';
import TableRow from '@mui/material/TableRow';
import { Button } from '@mui/material';
import { Link } from 'react-router-dom';
+import { useState } from 'react';
const columns = [
- // { id: 'name', label: 'Name', minWidth: 170 },
- // { id: 'code', label: 'ISO\u00a0Code', minWidth: 100 },
{
id: 'project_title',
label: 'Title',
minWidth: 170,
align: 'right',
- // format: (value) => value.toLocaleString('en-US'),
},
{
id: 'cms_contract_no',
label: 'Contract No',
minWidth: 170,
align: 'right',
- // format: (value) => value.toLocaleString('en-US'),
},
{
id: 'ticket_title',
label: 'Project Title',
minWidth: 170,
align: 'right',
- // format: (value) => value.toFixed(2),
},
{
id: 'term',
label: 'Term',
- Cell: (row:any) => (
+ Cell: (row: any) => (
(row.perpetuity !== '' && row.perpetuity !== null)
? (row.perpetuity !== "Yes" ? {row.effective_from1} - {row.effective_to1} : `${row.effective_from1} - Perpetual`)
: ""
@@ -46,7 +42,7 @@ const columns = [
{
id: 'link',
label: 'Link',
- Cell: (row:any) => (
+ Cell: (row: any) => (
(row.cid === null || row.cid === 0 || row.effective_from1 === null)
?
: (row.published === 1
@@ -59,79 +55,82 @@ const columns = [
},
];
-type Props={
- projectData:any
-}
+
+const ProjectTableHead = () => (
+