Skip to content

Commit

Permalink
Added Date Column
Browse files Browse the repository at this point in the history
  • Loading branch information
sergesoroka committed Mar 18, 2024
1 parent f9098cc commit 50d055c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/DataTable/TemplateTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ const columns = [
header: "Category",
cell: (props) => <>{props.getValue()}</>,
},
{
accessorKey: "timestamp",
header: "Date",
cell: (props) => <>{props.getValue().slice(0, 10)}</>,
},
];

export default function TemplateTable({ data }) {
Expand Down

0 comments on commit 50d055c

Please sign in to comment.