feat: add style of payment made.

This commit is contained in:
elforjani13
2021-12-20 16:47:48 +02:00
parent 961082c50b
commit 0d924464ea
7 changed files with 149 additions and 99 deletions

View File

@@ -20,26 +20,14 @@ function PaymentMadeDetailProvider({ paymentMadeId, ...props }) {
enabled: !!paymentMadeId,
},
);
// Handle fetch transaction by reference.
const {
data: { transactions },
isLoading: isTransactionLoading,
} = useTransactionsByReference(
{
reference_id: paymentMadeId,
reference_type: 'BillPayment',
},
{ enabled: !!paymentMadeId },
);
//provider.
const provider = {
transactions,
paymentMadeId,
paymentMade,
};
const loading = isTransactionLoading || isPaymentMadeLoading;
const loading = isPaymentMadeLoading;
return (
<DrawerLoading loading={loading}>