From ace3fdc5699f21de44a4372e8f6778d6c8eaaf21 Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Mon, 20 Dec 2021 14:33:48 +0200 Subject: [PATCH] feat: optmize style of payment receive details. --- .../InvoiceGLEntriesTable.js | 6 +- .../PaymentReceiveActionsBar.js | 19 ++-- .../PaymentReceiveDetail.js | 52 ++++++---- .../PaymentReceiveDetailHeader.js | 96 +++++++++++-------- .../PaymentReceiveDetailProvider.js | 18 +--- .../PaymentReceiveDetailTab.js | 23 ++--- .../PaymentReceiveDetailTable.js | 19 ++-- .../PaymentReceiveGLEntriesPanel.js | 42 ++++++++ 8 files changed, 167 insertions(+), 108 deletions(-) create mode 100644 src/containers/Drawers/PaymentReceiveDetailDrawer/PaymentReceiveGLEntriesPanel.js diff --git a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceGLEntriesTable.js b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceGLEntriesTable.js index b7d1f2572..aade4e656 100644 --- a/src/containers/Drawers/InvoiceDetailDrawer/InvoiceGLEntriesTable.js +++ b/src/containers/Drawers/InvoiceDetailDrawer/InvoiceGLEntriesTable.js @@ -40,10 +40,6 @@ export default function InvoiceGLEntriesTable() { ); } -const InvoiceGLEntriesDatatable = styled(JournalEntriesTable)` - .table .tbody .tr:last-child .td { - border-bottom: 0; - } -`; +const InvoiceGLEntriesDatatable = styled(JournalEntriesTable)``; const InvoiceGLEntriesRoot = styled(Card)``; diff --git a/src/containers/Drawers/PaymentReceiveDetailDrawer/PaymentReceiveActionsBar.js b/src/containers/Drawers/PaymentReceiveDetailDrawer/PaymentReceiveActionsBar.js index f1c725c8e..5f2cad543 100644 --- a/src/containers/Drawers/PaymentReceiveDetailDrawer/PaymentReceiveActionsBar.js +++ b/src/containers/Drawers/PaymentReceiveDetailDrawer/PaymentReceiveActionsBar.js @@ -1,6 +1,5 @@ import React from 'react'; import { useHistory } from 'react-router-dom'; - import { Button, NavbarGroup, @@ -8,7 +7,6 @@ import { NavbarDivider, Intent, } from '@blueprintjs/core'; -import DashboardActionsBar from 'components/Dashboard/DashboardActionsBar'; import { usePaymentReceiveDetailContext } from './PaymentReceiveDetailProvider'; @@ -16,7 +14,13 @@ import withDialogActions from 'containers/Dialog/withDialogActions'; import withAlertsActions from 'containers/Alert/withAlertActions'; import withDrawerActions from 'containers/Drawer/withDrawerActions'; -import { Can, Icon, FormattedMessage as T, MoreMenuItems } from 'components'; +import { + Can, + Icon, + FormattedMessage as T, + MoreMenuItems, + DrawerActionsBar, +} from 'components'; import { PaymentReceiveAction, AbilitySubject, @@ -59,7 +63,7 @@ function PaymentReceiveActionsBar({ }; return ( - +