Skip to content

Commit

Permalink
Merge pull request #110 from AkshataKatwal16/page-issue
Browse files Browse the repository at this point in the history
Issue feat:Add creator column in up for review page
  • Loading branch information
itsvick authored Nov 22, 2024
2 parents b5624e6 + f422c1d commit a11443f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 8 additions & 0 deletions src/components/KaTableComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,14 @@ const KaTableComponent: React.FC<CustomTableProps> = ({ data, columns, tableTitl
)
}
}
else if(props.column.key === "create-by")
{
return (
<Typography sx={{ fontSize: '14px', fontWeight: 500 }} variant="body2" color={'#987100'}>
{props.rowData.creator}
</Typography>
)
}
else if (props.column.key === 'contentAction') {
{
return (
Expand Down
10 changes: 7 additions & 3 deletions src/pages/workspace/content/up-review/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ import KaTableComponent from "@/components/KaTableComponent";
import { timeAgo } from "@/utils/Helper";
import useSharedStore from "@/utils/useSharedState";
const columns = [
{ key: 'title_and_description', title: 'TITLE & DESCRIPTION', dataType: DataType.String, width: "450px" },
{ key: 'title_and_description', title: 'TITLE & DESCRIPTION', dataType: DataType.String, width: "300px" },

{ key: 'contentType', title: 'CONTENT TYPE', dataType: DataType.String, width: "250px" },
// { key: 'status', title: 'STATUS', dataType: DataType.String, width: "100px" },
{ key: 'lastUpdatedOn', title: 'LAST MODIFIED', dataType: DataType.String, width: "180px" },
{ key: 'action', title: 'ACTION', dataType: DataType.String, width: "100px" },
{ key: 'create-by', title: 'CREATED BY', dataType: DataType.String, width: "100px" },
{ key: 'action', title: 'ACTION', dataType: DataType.String, width: "100px" },


]
Expand Down Expand Up @@ -71,7 +73,9 @@ const UpForReviewPage = () => {
identifier: item.identifier,
mimeType: item.mimeType,
mode: item.mode,
createdBy: item.createdBy
createdBy: item.createdBy,
creator: item.creator


}));
setData(filteredArray)
Expand Down

0 comments on commit a11443f

Please sign in to comment.