From 9ba08593254893025a9afd991b062dcd16a6e2bb Mon Sep 17 00:00:00 2001 From: elforjani13 <39470382+elforjani13@users.noreply.github.com> Date: Tue, 21 Sep 2021 19:44:42 +0200 Subject: [PATCH] BIG-96: remove payment receive paper. --- .../PaymentsLanding/PaymentReceivesTable.js | 6 ------ .../Sales/PaymentReceives/PaymentsLanding/components.js | 7 +------ 2 files changed, 1 insertion(+), 12 deletions(-) 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)} - />