Merged in feature/IO-2363-Labour-Allocation-Summary-Color-Coding (pull request #985)

IO-2363 Make Summary.Difference follow Color logic
This commit is contained in:
Allan Carr
2023-09-22 15:26:47 +00:00

View File

@@ -231,7 +231,14 @@ export function LaborAllocationsTable({
{summary.adjustments.toFixed(1)}
</Table.Summary.Cell>
<Table.Summary.Cell>
{summary.difference.toFixed(1)}
<Typography.Text
style={{
fontWeight: "bold",
color: summary.difference >= 0 ? "green" : "red",
}}
>
{summary.difference.toFixed(1)}
</Typography.Text>
</Table.Summary.Cell>
</Table.Summary.Row>
)}