Skip to content

Commit a271376

Browse files
authored
Merge pull request #2288 from HubSpot/costs_tweak
Add optional emissions data to costs table
2 parents 9ebeb01 + 8386be5 commit a271376

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

SingularityUI/app/components/requestDetail/CostsView.jsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,20 @@ const CostsView = ({requestId, costsAPI}) => {
4343
key="costType"
4444
cellData={(c) => Utils.humanizeText(c.costType)}
4545
/>
46+
<Column
47+
label="Monthly Emissions"
48+
id="monthlyEmissions"
49+
key="monthlyEmissions"
50+
cellData={(c) => c.monthlyEmissions}
51+
cellRender={(e) => e + ' MTCO2e'}
52+
/>
4653
<Column
4754
label="Cost"
4855
id="cost"
4956
key="cost"
5057
forceSortHeader={true}
5158
cellData={(c) => c.cost}
52-
cellRender={(c) => '$' + c}
59+
cellRender={(c) => '$' + c + ' /day'}
5360
/>
5461
</UITable>
5562
</CollapsableSection>

0 commit comments

Comments
 (0)