mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 07:45:47 +00:00
fix(FE): fixing total text color debt supplier
This commit is contained in:
@@ -473,7 +473,9 @@ const DebtSupplierTab = ({ tabId }: DebtSupplierTabProps) => {
|
|||||||
footer: () => {
|
footer: () => {
|
||||||
const value = supplier?.total.total_price;
|
const value = supplier?.total.total_price;
|
||||||
return (
|
return (
|
||||||
<div className={`text-right ${value || 0 < 0 ? 'text-red-500' : ''}`}>
|
<div
|
||||||
|
className={`text-right ${value && value < 0 ? 'text-red-500' : ''}`}
|
||||||
|
>
|
||||||
{formatCurrency(value || 0)}
|
{formatCurrency(value || 0)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -495,7 +497,9 @@ const DebtSupplierTab = ({ tabId }: DebtSupplierTabProps) => {
|
|||||||
footer: () => {
|
footer: () => {
|
||||||
const value = supplier?.total.payment_price;
|
const value = supplier?.total.payment_price;
|
||||||
return (
|
return (
|
||||||
<div className={`text-right ${value || 0 < 0 ? 'text-red-500' : ''}`}>
|
<div
|
||||||
|
className={`text-right ${value && value < 0 ? 'text-red-500' : ''}`}
|
||||||
|
>
|
||||||
{formatCurrency(value || 0)}
|
{formatCurrency(value || 0)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -517,7 +521,9 @@ const DebtSupplierTab = ({ tabId }: DebtSupplierTabProps) => {
|
|||||||
footer: () => {
|
footer: () => {
|
||||||
const value = supplier?.total.debt_price;
|
const value = supplier?.total.debt_price;
|
||||||
return (
|
return (
|
||||||
<div className={`text-right ${value || 0 < 0 ? 'text-red-500' : ''}`}>
|
<div
|
||||||
|
className={`text-right ${value && value < 0 ? 'text-red-500' : ''}`}
|
||||||
|
>
|
||||||
{formatCurrency(value || 0)}
|
{formatCurrency(value || 0)}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user