feat: calculate total amount of form entries.

This commit is contained in:
Ahmed Bouhuolia
2020-11-30 12:22:47 +02:00
parent 28e95a5aa4
commit ad5a6b3eb9
8 changed files with 77 additions and 30 deletions

View File

@@ -10,9 +10,8 @@ export default function PageFormBigNumber({ label, amount, currencyCode }) {
<div className={classNames(CLASSES.PAGE_FORM_HEADER_BIG_NUMBERS)}>
<div class="big-amount">
<span class="big-amount__label">{ label }</span>
<h1 class="big-amount__number">
<Money amount={0} currency={'LYD'} />
<Money amount={amount} currency={currencyCode} />
</h1>
</div>
</div>