From fa23aa67d3f6c3b59f1ed3b0f06dc29568d03901 Mon Sep 17 00:00:00 2001 From: elforjani13 <39470382+elforjani13@users.noreply.github.com> Date: Thu, 30 Dec 2021 12:15:23 +0200 Subject: [PATCH] BIG-202 Remove the allocate actions bar. --- .../BillDrawer/BillDetailActionsBar.js | 6 ++++++ .../BillDrawer/LocatedLandedCostTable.js | 20 ++----------------- src/containers/Drawers/BillDrawer/utils.js | 8 +++++++- src/lang/ar/index.json | 1 + src/lang/en/index.json | 1 + 5 files changed, 17 insertions(+), 19 deletions(-) diff --git a/src/containers/Drawers/BillDrawer/BillDetailActionsBar.js b/src/containers/Drawers/BillDrawer/BillDetailActionsBar.js index 0db244234..7f78410b5 100644 --- a/src/containers/Drawers/BillDrawer/BillDetailActionsBar.js +++ b/src/containers/Drawers/BillDrawer/BillDetailActionsBar.js @@ -69,6 +69,11 @@ function BillDetailActionsBar({ openDialog('quick-payment-made', { billId }); }; + // Handle allocate landed cost button click. + const handleAllocateCostClick = () => { + openDialog('allocate-landed-cost', { billId }); + }; + return ( @@ -106,6 +111,7 @@ function BillDetailActionsBar({ diff --git a/src/containers/Drawers/BillDrawer/LocatedLandedCostTable.js b/src/containers/Drawers/BillDrawer/LocatedLandedCostTable.js index fa536fa92..300928a4d 100644 --- a/src/containers/Drawers/BillDrawer/LocatedLandedCostTable.js +++ b/src/containers/Drawers/BillDrawer/LocatedLandedCostTable.js @@ -1,6 +1,5 @@ import React from 'react'; import { DataTable, Card, FormattedMessage as T } from 'components'; -import { Button, Classes, NavbarGroup } from '@blueprintjs/core'; import { useLocatedLandedCostColumns, ActionsMenu } from './components'; import { useBillDrawerContext } from './BillDrawerProvider'; @@ -13,8 +12,7 @@ import { TableStyle } from '../../../common'; import TableSkeletonRows from 'components/Datatable/TableSkeletonRows'; import { compose } from 'utils'; -import DashboardActionsBar from 'components/Dashboard/DashboardActionsBar'; -import Icon from 'components/Icon'; + /** * Located landed cost table. @@ -32,10 +30,7 @@ function LocatedLandedCostTable({ const columns = useLocatedLandedCostColumns(); const { transactions, billId } = useBillDrawerContext(); - // Handle allocate landed cost button click. - const handleAllocateCostClick = () => { - openDialog('allocate-landed-cost', { billId }); - }; + // Handle the transaction delete action. const handleDeleteTransaction = ({ id }) => { @@ -60,17 +55,6 @@ function LocatedLandedCostTable({ return (
- - -