From ca0672509b6b574658c09ac358427bac03be6c3b Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Sat, 19 Mar 2022 23:13:32 +0200 Subject: [PATCH] feat(InvoiceFormFooter): add invoice form footer the total lines. --- .../Invoices/InvoiceForm/InvoiceFormFooter.js | 53 ++++------------ .../InvoiceForm/InvoiceFormFooterLeft.js | 61 +++++++++++++++++++ .../InvoiceForm/InvoiceFormFooterRight.js | 47 ++++++++++++++ 3 files changed, 121 insertions(+), 40 deletions(-) create mode 100644 src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooterLeft.js create mode 100644 src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooterRight.js diff --git a/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooter.js b/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooter.js index b25259b6c..57d990bc8 100644 --- a/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooter.js +++ b/src/containers/Sales/Invoices/InvoiceForm/InvoiceFormFooter.js @@ -1,57 +1,30 @@ import React from 'react'; -import { FastField } from 'formik'; import classNames from 'classnames'; -import { FormGroup, TextArea } from '@blueprintjs/core'; -import { FormattedMessage as T } from 'components'; -import { CLASSES } from 'common/classes'; -import { Row, Col, Postbox } from 'components'; -import Dragzone from 'components/Dragzone'; +import styled from 'styled-components'; -import { inputIntent } from 'utils'; +import { CLASSES } from 'common/classes'; +import { Paper, Row, Col } from 'components'; +import { InvoiceFormFooterLeft } from './InvoiceFormFooterLeft'; +import { InvoiceFormFooterRight } from './InvoiceFormFooterRight'; export default function InvoiceFormFooter() { return (
- } defaultOpen={false}> + - {/* --------- Invoice message --------- */} - - {({ field, meta: { error, touched } }) => ( - } - className={'form-group--invoice_message'} - intent={inputIntent({ error, touched })} - > -