Просмотр исходного кода

cleanup

Signed-off-by: Thomas Evans <tevans3@icloud.com>
jjarrett21 2 лет назад
Родитель
Сommit
bf1fd0ecf0
3 измененных файлов с 3 добавлено и 4 удалено
  1. 1 1
      ui/src/CloudCost/CloudCost.js
  2. 0 1
      ui/src/CloudCost/CloudCostChart/index.js
  3. 2 2
      ui/src/CloudCostReports.js

+ 1 - 1
ui/src/CloudCost/CloudCost.js

@@ -155,7 +155,7 @@ const CloudCost = ({ cumulativeData, totalData, graphData, currency }) => {
                     >
                     >
                       {cell.id === "kubernetesPercent"
                       {cell.id === "kubernetesPercent"
                         ? round(totalData[cell.id] * 100, 2) + "%"
                         ? round(totalData[cell.id] * 100, 2) + "%"
-                        : toCurrency(round(totalData[cell.id]), currency)}
+                        : totalData[cell.id]}
                     </TableCell>
                     </TableCell>
                   );
                   );
                 })}
                 })}

+ 0 - 1
ui/src/CloudCost/CloudCostChart/index.js

@@ -1,5 +1,4 @@
 import React from "react";
 import React from "react";
-import { isArray, filter, map, reduce, reverse, sortBy } from "lodash";
 
 
 import Typography from "@material-ui/core/Typography";
 import Typography from "@material-ui/core/Typography";
 
 

+ 2 - 2
ui/src/CloudCostReports.js

@@ -6,7 +6,7 @@ import RefreshIcon from "@material-ui/icons/Refresh";
 import { makeStyles } from "@material-ui/styles";
 import { makeStyles } from "@material-ui/styles";
 import { Paper, Typography } from "@material-ui/core";
 import { Paper, Typography } from "@material-ui/core";
 import CircularProgress from "@material-ui/core/CircularProgress";
 import CircularProgress from "@material-ui/core/CircularProgress";
-import { get, find, sortBy, toArray } from "lodash";
+import { get, find } from "lodash";
 import { useLocation, useHistory } from "react-router";
 import { useLocation, useHistory } from "react-router";
 
 
 import { checkCustomWindow, toVerboseTimeRange } from "./util";
 import { checkCustomWindow, toVerboseTimeRange } from "./util";
@@ -169,7 +169,7 @@ const CloudCostReports = () => {
   React.useEffect(() => {
   React.useEffect(() => {
     setFetch(true);
     setFetch(true);
     setTitle(generateTitle({ window, aggregateBy, costMetric }));
     setTitle(generateTitle({ window, aggregateBy, costMetric }));
-  }, [window, aggregateBy, costMetric]);
+  }, [window, aggregateBy, costMetric, fetch]);
 
 
   return (
   return (
     <Page active="cloud.html">
     <Page active="cloud.html">