fix: update financial forms to use new formatted amount utilities and add adjustment fields

This commit is contained in:
Ahmed Bouhuolia
2024-12-03 17:53:37 +02:00
parent 542763ddf5
commit 3a19518440
21 changed files with 128 additions and 133 deletions

View File

@@ -2,18 +2,22 @@
import React from 'react';
import classNames from 'classnames';
import { CLASSES } from '@/constants/classes';
import { Money } from '@/components';
import '@/style/components/BigAmount.scss';
export function PageFormBigNumber({ label, amount, currencyCode }) {
interface PageFormBigNumberProps {
label: string;
amount: string | number;
}
export function PageFormBigNumber({
label,
amount,
}: PageFormBigNumberProps) {
return (
<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={amount} currency={currencyCode} />
</h1>
<h1 class="big-amount__number">{amount}</h1>
</div>
</div>
);