Update comments, use MUI's capitalize

This commit is contained in:
Tim Hansen
2021-01-25 20:15:50 -07:00
parent fac91bcc5f
commit 9ba282f7c7
2 changed files with 6 additions and 5 deletions
+4 -4
View File
@@ -100,8 +100,8 @@ export class ExampleCostInsightsClient implements CostInsightsApi {
aggregation: aggregation,
change: changeOf(aggregation),
trendline: trendlineOf(aggregation),
// Optional field on Cost which needs to be supplied in order to see
// the product breakdown view in the top panel.
// Optional field providing cost groupings / breakdowns keyed by the type. In this example,
// daily cost grouped by cloud product OR by project / billing account.
groupedCosts: {
product: getGroupedProducts(intervals),
project: getGroupedProjects(intervals),
@@ -121,8 +121,8 @@ export class ExampleCostInsightsClient implements CostInsightsApi {
aggregation: aggregation,
change: changeOf(aggregation),
trendline: trendlineOf(aggregation),
// Optional field on Cost which needs to be supplied in order to see
// the product breakdown view in the top panel.
// Optional field providing cost groupings / breakdowns keyed by the type. In this example,
// daily project cost grouped by cloud product.
groupedCosts: {
product: getGroupedProducts(intervals),
},
@@ -17,6 +17,7 @@
import React, { useEffect, useState } from 'react';
import {
Box,
capitalize,
Card,
CardContent,
Divider,
@@ -72,7 +73,7 @@ export const CostOverviewCard = ({
key => ({
id: key,
label: `Breakdown by ${key}`,
title: `Cloud Cost By ${key.charAt(0).toUpperCase() + key.slice(1)}`,
title: `Cloud Cost By ${capitalize(key)}`,
}),
);
const tabs = [