Files
bigcapital/src/containers/Sales/PaymentReceives/PaymentReceiveForm/PaymentReceiveFormFootetRight.js
elforjani13 a913b84723 Fix: sales.
2022-03-22 23:58:03 +02:00

35 lines
909 B
JavaScript

import React from 'react';
import styled from 'styled-components';
import {
T,
TotalLines,
TotalLine,
TotalLineBorderStyle,
TotalLineTextStyle,
} from 'components';
import { usePaymentReceiveTotals } from './utils';
export function PaymentReceiveFormFootetRight() {
const { formattedSubtotal, formattedTotal } = usePaymentReceiveTotals();
return (
<PaymentReceiveTotalLines labelColWidth={'180px'} amountColWidth={'180px'}>
<TotalLine
title={<T id={'payment_receive_form.label.subtotal'} />}
value={formattedSubtotal}
borderStyle={TotalLineBorderStyle.None}
/>
<TotalLine
title={<T id={'payment_receive_form.label.total'} />}
value={formattedTotal}
textStyle={TotalLineTextStyle.Bold}
/>
</PaymentReceiveTotalLines>
);
}
const PaymentReceiveTotalLines = styled(TotalLines)`
width: 100%;
color: #555555;
`;