Skip to content

Commit

Permalink
Merge pull request #824 from AI4Bharat/Rahul-537
Browse files Browse the repository at this point in the history
Rahul 537
  • Loading branch information
aparna-aa authored Sep 10, 2024
2 parents 0f7794a + d092a6a commit 528693f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
23 changes: 23 additions & 0 deletions src/config/tableColumns.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ export const videoTaskListColumns = [
},
},
},
{
name: "eta",
label: "ETA",
options: {
customBodyRender: (value) => {
return <Box>{moment(value).format("DD/MM/YYYY HH:mm:ss")}</Box>;
},
},
},
{
name: "status",
label: "Status",
Expand Down Expand Up @@ -338,6 +347,20 @@ export const taskListColumns = [
},
},
},
{
name: "eta",
label: "ETA",
options: {
customBodyRender: (value) => {
if (value) {
const formattedETA = new Date(value).toLocaleString();
return <Box>{formattedETA}</Box>;
}
return <Box>N/A</Box>;
},
},
},

{
name: "time_spent",
label: "Time Spent",
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Organization/OrgLevelTaskList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ const OrgLevelTaskList = () => {
"description",
"created_at",
"updated_at",
"video_name",
// "video_name",
];
allCols.forEach((ele) => {
if (displayColsLocalStorage && ele in displayColsLocalStorage) {
Expand Down
2 changes: 1 addition & 1 deletion src/containers/Organization/Project/TaskList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ const TaskList = () => {
"description",
"created_at",
"updated_at",
"video_name",
// "video_name",
];
allCols.forEach((ele) => {
if (displayColsLocalStorage && ele in displayColsLocalStorage) {
Expand Down

0 comments on commit 528693f

Please sign in to comment.