diff --git a/src/containers/Sales/PaymentReceives/PaymentsLanding/PaymentReceivesTable.js b/src/containers/Sales/PaymentReceives/PaymentsLanding/PaymentReceivesTable.js index ff8ed0b22..3d981dc76 100644 --- a/src/containers/Sales/PaymentReceives/PaymentsLanding/PaymentReceivesTable.js +++ b/src/containers/Sales/PaymentReceives/PaymentsLanding/PaymentReceivesTable.js @@ -59,11 +59,6 @@ function PaymentReceivesDataTable({ openAlert('payment-receive-delete', { paymentReceiveId: id }); }; - // Handle drawer payment receive. - const handleDrawerPaymentReceive = ({ id }) => { - openDrawer('payment-receive-drawer', { paymentReceiveId: id }); - }; - // Handle view detail payment receive.. const handleViewDetailPaymentReceive = ({ id }) => { openDrawer('payment-receive-detail-drawer', { paymentReceiveId: id }); @@ -123,7 +118,6 @@ function PaymentReceivesDataTable({ payload={{ onDelete: handleDeletePaymentReceive, onEdit: handleEditPaymentReceive, - onDrawer: handleDrawerPaymentReceive, onViewDetails: handleViewDetailPaymentReceive, }} /> diff --git a/src/containers/Sales/PaymentReceives/PaymentsLanding/components.js b/src/containers/Sales/PaymentReceives/PaymentsLanding/components.js index 3efda0329..aa5d7c8cf 100644 --- a/src/containers/Sales/PaymentReceives/PaymentsLanding/components.js +++ b/src/containers/Sales/PaymentReceives/PaymentsLanding/components.js @@ -20,7 +20,7 @@ import { CLASSES } from '../../../../common/classes'; */ export function ActionsMenu({ row: { original: paymentReceive }, - payload: { onEdit, onDelete, onDrawer, onViewDetails }, + payload: { onEdit, onDelete, onViewDetails }, }) { return ( @@ -35,11 +35,6 @@ export function ActionsMenu({ text={intl.get('edit_payment_receive')} onClick={safeCallback(onEdit, paymentReceive)} /> - } - text={intl.get('payment_receive_paper')} - onClick={safeCallback(onDrawer, paymentReceive)} - />