1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-17 13:46:47 +02:00

feat: add due date for invoices (#3257)

This commit is contained in:
Jaanus Sellin 2023-03-06 11:01:13 +02:00 committed by GitHub
parent 24cb13dee4
commit f8a209a1d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,11 +39,14 @@ const columns = [
{
Header: 'Created date',
accessor: 'created',
Cell: ({ value }: { value: number }) => {
return (
<DateCell value={value ? new Date(value * 1000) : undefined} />
);
},
Cell: DateCell,
sortType: 'date',
disableGlobalFilter: true,
},
{
Header: 'Due date',
accessor: 'dueDate',
Cell: DateCell,
sortType: 'date',
disableGlobalFilter: true,
},