1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-21 13:47:39 +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', Header: 'Created date',
accessor: 'created', accessor: 'created',
Cell: ({ value }: { value: number }) => { Cell: DateCell,
return ( sortType: 'date',
<DateCell value={value ? new Date(value * 1000) : undefined} /> disableGlobalFilter: true,
);
}, },
{
Header: 'Due date',
accessor: 'dueDate',
Cell: DateCell,
sortType: 'date', sortType: 'date',
disableGlobalFilter: true, disableGlobalFilter: true,
}, },