feat(lang): drawer lang.

This commit is contained in:
elforjani3
2021-06-07 15:19:02 +02:00
parent c6eadaca09
commit 23450a09cd
22 changed files with 152 additions and 121 deletions

View File

@@ -1,5 +1,6 @@
import React from 'react';
import { If, Money } from 'components';
import { FormattedMessage as T } from 'react-intl';
export default function ExpenseDrawerFooter({
expense: { total_amount, currency_code },
@@ -8,11 +9,11 @@ export default function ExpenseDrawerFooter({
<div className="expense-drawer__content--footer">
<div className="wrapper">
<div>
<span>Sub Total</span>
<span><T id={'sub_total'}/></span>
<p>{<Money amount={total_amount} currency={currency_code} />}</p>
</div>
<div>
<span>Total</span>
<span><T id={'total'}/></span>
<p>{<Money amount={total_amount} currency={currency_code} />}</p>
</div>
</div>