From 6b98e1f1c285d3af01760b230a1661007ddb8701 Mon Sep 17 00:00:00 2001 From: elforjani13 <39470382+elforjani13@users.noreply.github.com> Date: Thu, 30 Dec 2021 12:28:42 +0200 Subject: [PATCH] BIG-204 payment transactions context menu actions. --- .../BillPaymentTransactionTable.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/containers/Drawers/BillDrawer/BillPaymentTransactions/BillPaymentTransactionTable.js b/src/containers/Drawers/BillDrawer/BillPaymentTransactions/BillPaymentTransactionTable.js index 8ef93e23b..f19c23bd4 100644 --- a/src/containers/Drawers/BillDrawer/BillPaymentTransactions/BillPaymentTransactionTable.js +++ b/src/containers/Drawers/BillDrawer/BillPaymentTransactions/BillPaymentTransactionTable.js @@ -40,15 +40,15 @@ function BillPaymentTransactionTable({ }); // Handles delete bill payment transactions. - const handleDeleteBillPaymentTransactons = ({ bill_id }) => { - openAlert('bill-delete', { - billId: bill_id, + const handleDeleteBillPaymentTransactons = ({ bill_payment_id }) => { + openAlert('payment-made-delete', { + paymentMadeId: bill_payment_id, }); }; // Handles edit bill payment transactions. - const handleEditBillPaymentTransactions = ({ bill_id }) => { - history.push(`/bills/${bill_id}/edit`); + const handleEditBillPaymentTransactions = ({ bill_payment_id }) => { + history.push(`/payment-mades/${bill_payment_id}/edit`); closeDrawer('bill-drawer'); };