mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-12 02:40:31 +00:00
30 lines
813 B
JavaScript
30 lines
813 B
JavaScript
import React from 'react';
|
|
import { DataTable, Card } from 'components';
|
|
|
|
import { useInvoicePaymentTransactionsColumns } from './utils';
|
|
import { useInvoiceDetailDrawerContext } from './InvoiceDetailDrawerProvider';
|
|
|
|
/**
|
|
* Invoice payment transactions datatable.
|
|
*/
|
|
export default function InvoicePaymentTransactionsTable() {
|
|
const columns = useInvoicePaymentTransactionsColumns();
|
|
const {
|
|
paymentTransactions,
|
|
isPaymentTransactionLoading,
|
|
isPaymentTransactionFetching,
|
|
} = useInvoiceDetailDrawerContext();
|
|
|
|
return (
|
|
<Card>
|
|
<DataTable
|
|
columns={columns}
|
|
data={paymentTransactions}
|
|
loading={isPaymentTransactionLoading}
|
|
headerLoading={isPaymentTransactionLoading}
|
|
progressBarLoading={isPaymentTransactionFetching}
|
|
/>
|
|
</Card>
|
|
);
|
|
}
|