mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
35 lines
909 B
JavaScript
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;
|
|
`;
|