From 69c47aee4d2a93e0b361321fa19fe4059784541a Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Sat, 19 Mar 2022 23:15:37 +0200 Subject: [PATCH] feat(InvoiceForm): remove the entries table footer. --- src/containers/Entries/components.js | 77 +++++-------------- .../InvoiceForm/InvoiceFormCurrencyTag.js | 10 ++- .../InvoiceForm/InvoiceFormProvider.js | 6 +- 3 files changed, 29 insertions(+), 64 deletions(-) diff --git a/src/containers/Entries/components.js b/src/containers/Entries/components.js index a6881db6d..877852388 100644 --- a/src/containers/Entries/components.js +++ b/src/containers/Entries/components.js @@ -1,8 +1,11 @@ import React from 'react'; import intl from 'react-intl-universal'; -import { Tooltip, Button, Intent, Position } from '@blueprintjs/core'; +import { MenuItem, Menu, Button, Position } from '@blueprintjs/core'; +import { Popover2 } from '@blueprintjs/popover2'; + +import { Align } from 'common'; import { Hint, Icon, FormattedMessage as T } from 'components'; -import { formattedAmount, safeSumBy } from 'utils'; +import { formattedAmount } from 'utils'; import { InputGroupCell, MoneyFieldCell, @@ -27,60 +30,35 @@ export function ItemHeaderCell() { ); } -/** - * Item column footer cell. - */ -export function ItemFooterCell() { - return ( - - - - ); -} - /** * Actions cell renderer component. */ export function ActionsCellRenderer({ row: { index }, - column: { id }, - cell: { value }, - data, payload: { removeRow }, }) { const onRemoveRole = () => { removeRow(index); }; + const exampleMenu = ( + + + + ); + return ( - } position={Position.LEFT}> +