From 9474a4fcd1ee36a5328b9f7a789b49c27988269d Mon Sep 17 00:00:00 2001 From: elforjani13 <39470382+elforjani13@users.noreply.github.com> Date: Thu, 30 Dec 2021 11:56:58 +0200 Subject: [PATCH 1/4] BIG-197 Bill landed amount text right align. --- src/containers/Dialogs/AllocateLandedCostDialog/utils.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/containers/Dialogs/AllocateLandedCostDialog/utils.js b/src/containers/Dialogs/AllocateLandedCostDialog/utils.js index e3fb5ac3b..0cf420992 100644 --- a/src/containers/Dialogs/AllocateLandedCostDialog/utils.js +++ b/src/containers/Dialogs/AllocateLandedCostDialog/utils.js @@ -89,11 +89,14 @@ export const useAllocateLandedCostEntriesTableColumns = () => { accessor: 'rate', disableSortBy: true, width: '100', + align: 'right', + }, { Header: intl.get('amount'), accessor: 'amount', disableSortBy: true, + align: 'right', width: '100', }, { 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 2/4] 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 (
- - -