From 8386be580793829eac7d5cb93db0f309dc2f4080 Mon Sep 17 00:00:00 2001 From: Stephen Salinas Date: Mon, 18 Apr 2022 11:31:13 -0400 Subject: [PATCH] Add optional emissions data to costs table --- SingularityUI/app/components/requestDetail/CostsView.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/SingularityUI/app/components/requestDetail/CostsView.jsx b/SingularityUI/app/components/requestDetail/CostsView.jsx index ba5b82cdaf..46d3f39673 100644 --- a/SingularityUI/app/components/requestDetail/CostsView.jsx +++ b/SingularityUI/app/components/requestDetail/CostsView.jsx @@ -43,13 +43,20 @@ const CostsView = ({requestId, costsAPI}) => { key="costType" cellData={(c) => Utils.humanizeText(c.costType)} /> + c.monthlyEmissions} + cellRender={(e) => e + ' MTCO2e'} + /> c.cost} - cellRender={(c) => '$' + c} + cellRender={(c) => '$' + c + ' /day'} />