From f8a209a1d1fe2f0a2ce9d2015005c8c36233c657 Mon Sep 17 00:00:00 2001 From: Jaanus Sellin Date: Mon, 6 Mar 2023 11:01:13 +0200 Subject: [PATCH] feat: add due date for invoices (#3257) --- .../admin/billing/BillingHistory/BillingHistory.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/src/component/admin/billing/BillingHistory/BillingHistory.tsx b/frontend/src/component/admin/billing/BillingHistory/BillingHistory.tsx index 6364975d41..4471f642fa 100644 --- a/frontend/src/component/admin/billing/BillingHistory/BillingHistory.tsx +++ b/frontend/src/component/admin/billing/BillingHistory/BillingHistory.tsx @@ -39,11 +39,14 @@ const columns = [ { Header: 'Created date', accessor: 'created', - Cell: ({ value }: { value: number }) => { - return ( - - ); - }, + Cell: DateCell, + sortType: 'date', + disableGlobalFilter: true, + }, + { + Header: 'Due date', + accessor: 'dueDate', + Cell: DateCell, sortType: 'date', disableGlobalFilter: true, },