MSI\2Fi 1 year ago
parent
commit
3d791a24e8
1 changed files with 15 additions and 21 deletions
  1. +15
    -21
      src/components/ProjectFinancialSummary/ProjectFinancialCard.tsx

+ 15
- 21
src/components/ProjectFinancialSummary/ProjectFinancialCard.tsx View File

@@ -133,7 +133,6 @@ const ProjectFinancialCard: React.FC<Props> = ({
<div className="text-sm font-medium mx-5" style={{ color: "#898d8d" }}> <div className="text-sm font-medium mx-5" style={{ color: "#898d8d" }}>
{t("Cash Flow Status")} {t("Cash Flow Status")}
</div> </div>
{CashFlowStatus === "Negative" && (
<> <>
<div <div
className="text-lg font-medium mx-5" className="text-lg font-medium mx-5"
@@ -143,7 +142,6 @@ const ProjectFinancialCard: React.FC<Props> = ({
</div> </div>
<hr /> <hr />
</> </>
)}
<div <div
className="text-sm mt-2 font-medium mx-5" className="text-sm mt-2 font-medium mx-5"
style={{ color: "#898d8d" }} style={{ color: "#898d8d" }}
@@ -164,33 +162,29 @@ const ProjectFinancialCard: React.FC<Props> = ({
<div className="text-sm font-medium mx-5" style={{ color: "#898d8d" }}> <div className="text-sm font-medium mx-5" style={{ color: "#898d8d" }}>
{t("Projected Cash Flow Status")} {t("Projected Cash Flow Status")}
</div> </div>
{ProjectedCashFlowStatus === "Negative" && (
<>
<div
className="text-lg font-medium mx-5"
style={ProjectedCashFlowStatus === "Negative" && dataNegativeStyle || dataPositiveStyle}
>
{t(ProjectedCashFlowStatus)}
</div>
<hr />
</>
)}
<>
<div
className="text-lg font-medium mx-5"
style={ProjectedCashFlowStatus === "Negative" && dataNegativeStyle || dataPositiveStyle}
>
{t(ProjectedCashFlowStatus)}
</div>
<hr />
</>
<div <div
className="text-sm mt-2 font-medium mx-5" className="text-sm mt-2 font-medium mx-5"
style={{ color: "#898d8d" }} style={{ color: "#898d8d" }}
> >
{t("Projected Cost Performance Index") + " (CPI)"} {t("Projected Cost Performance Index") + " (CPI)"}
</div> </div>
{Number(ProjectedCPI) < 1 && (
<> <>
<div
className="text-lg font-medium mx-5 mb-2"
style={Number(ProjectedCPI) < 1 && dataNegativeStyle || dataPositiveStyle}
>
{ProjectedCPI}
</div>
<div
className="text-lg font-medium mx-5 mb-2"
style={Number(ProjectedCPI) < 1 && dataNegativeStyle || dataPositiveStyle}
>
{ProjectedCPI}
</div>
</> </>
)}
</Card> </Card>
); );
}; };


Loading…
Cancel
Save