fix: remove estimate paper button action.

This commit is contained in:
a.bouhuolia
2021-09-11 14:24:08 +02:00
parent ccd30cb2bd
commit a40029ba1d
6 changed files with 0 additions and 33 deletions

View File

@@ -70,11 +70,6 @@ function EstimatesDataTable({
openAlert('estimate-reject', { estimateId: id });
};
// Handle drawer estimate.
const handleDrawerEstimate = ({ id }) => {
openDrawer('estimate-drawer', { estimateId: id });
};
// Handle convent to invoice.
const handleConvertToInvoice = ({ id }) => {
history.push(`/invoices/new?from_estimate_id=${id}`, { action: id });
@@ -137,7 +132,6 @@ function EstimatesDataTable({
onReject: handleRejectEstimate,
onDeliver: handleDeliverEstimate,
onDelete: handleDeleteEstimate,
onDrawer: handleDrawerEstimate,
onConvert: handleConvertToInvoice,
onViewDetails: handleViewDetailEstimate,
onPrint: handlePrintEstimate,

View File

@@ -115,11 +115,6 @@ export function ActionsMenu({
/>
</Choose.When>
</Choose>
<MenuItem
icon={<Icon icon={'receipt-24'} iconSize={16} />}
text={intl.get('estimate_paper')}
onClick={safeCallback(onDrawer, original)}
/>
<MenuItem
icon={<Icon icon={'print-16'} iconSize={16} />}
text={intl.get('print')}