Prettierr

Signed-off-by: Allan Carr <allan.carr@thinkimex.com>
This commit is contained in:
Allan Carr
2024-03-06 15:30:56 -08:00
parent 58ab7afbb3
commit fa86254bfd
2 changed files with 15 additions and 13 deletions

View File

@@ -98,7 +98,8 @@ export function AccountingPayablesTableComponent({
dataIndex: "amount",
key: "amount",
sorter: (a, b) => a.amount - b.amount,
sortOrder: state.sortedInfo.columnKey === "amount" && state.sortedInfo.order,
sortOrder:
state.sortedInfo.columnKey === "amount" && state.sortedInfo.order,
render: (text, record) => (
<CurrencyFormatter>{record.amount}</CurrencyFormatter>
),
@@ -118,7 +119,8 @@ export function AccountingPayablesTableComponent({
dataIndex: "created_at",
key: "created_at",
sorter: (a, b) => dateSort(a.created_at, b.created_at),
sortOrder: state.sortedInfo.columnKey === "created_at" && state.sortedInfo.order,
sortOrder:
state.sortedInfo.columnKey === "created_at" && state.sortedInfo.order,
render: (text, record) => (
<DateTimeFormatter>{record.created_at}</DateTimeFormatter>
),