Răsfoiți Sursa

remvoing dead code

Signed-off-by: Thomas Evans <tevans3@icloud.com>
jjarrett21 2 ani în urmă
părinte
comite
1e6a38e9af
2 a modificat fișierele cu 0 adăugiri și 15 ștergeri
  1. 0 9
      ui/src/CloudCost/CloudCost.js
  2. 0 6
      ui/src/CloudCost/CloudCostRow.js

+ 0 - 9
ui/src/CloudCost/CloudCost.js

@@ -102,15 +102,6 @@ const CloudCost = ({
     setPage(0);
     setPage(0);
   };
   };
 
 
-  const createSortHandler = (property) => (event) =>
-    handleRequestSort(event, property);
-
-  const handleRequestSort = (event, property) => {
-    const isDesc = orderBy === property && order === "desc";
-    setOrder(isDesc ? "asc" : "desc");
-    setOrderBy(property);
-  };
-
   const orderedRows = stableSort(cumulativeData, getComparator(order, orderBy));
   const orderedRows = stableSort(cumulativeData, getComparator(order, orderBy));
   const pageRows = orderedRows.slice(
   const pageRows = orderedRows.slice(
     page * rowsPerPage,
     page * rowsPerPage,

+ 0 - 6
ui/src/CloudCost/CloudCostRow.js

@@ -25,7 +25,6 @@ const CloudCostRow = ({
     return `${totalPercent}%`;
     return `${totalPercent}%`;
   }
   }
 
 
-  // const canShowMore = sampleData && !!row.providerID;
   const whichPercent = sampleData
   const whichPercent = sampleData
     ? `${(kubernetesPercent * 100).toFixed(1)}%`
     ? `${(kubernetesPercent * 100).toFixed(1)}%`
     : calculatePercent();
     : calculatePercent();
@@ -33,11 +32,6 @@ const CloudCostRow = ({
     <TableRow onClick={() => drilldown(row)}>
     <TableRow onClick={() => drilldown(row)}>
       <TableCell
       <TableCell
         align={"left"}
         align={"left"}
-        // style={
-        //   canShowMore
-        //     ? { cursor: "pointer", color: "#346ef2", padding: "1rem" }
-        //     : { pointerEvents: "none", padding: "1rem" }
-        // }
         style={{ cursor: "pointer", color: "#346ef2", padding: "1rem" }}
         style={{ cursor: "pointer", color: "#346ef2", padding: "1rem" }}
       >
       >
         {name}
         {name}