Skip to content

Commit

Permalink
Merge pull request layer5io#411 from sudhanshutech/add/format
Browse files Browse the repository at this point in the history
feat(component): Add few other date formats in table
  • Loading branch information
nebula-aac authored Dec 10, 2023
2 parents 91ffda2 + f8d0c29 commit cd174b7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/components/src/custom/ResponsiveDataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,15 @@ const ResponsiveDataTable = ({
col.options.display = columnVisibility && columnVisibility[col.name];

if (
['updated_at', 'created_at', 'deleted_at', 'last_login_time', 'joined_at'].includes(
col.name
)
[
'updated_at',
'created_at',
'deleted_at',
'last_login_time',
'joined_at',
'last_run',
'next_run'
].includes(col.name)
) {
col.options.customBodyRender = (value: string | number | boolean | object) => {
if (value === 'NA') {
Expand Down

0 comments on commit cd174b7

Please sign in to comment.