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

Removed unused styled components

jnfrati 4 лет назад
Родитель
Сommit
bb066616f4

+ 21 - 37
dashboard/src/main/home/cluster-dashboard/expanded-chart/metrics/MetricsSection.tsx

@@ -556,10 +556,9 @@ export default class MetricsSection extends Component<PropsType, StateType> {
               refresh
               refresh
             </RefreshMetrics> */}
             </RefreshMetrics> */}
 
 
-          <Highlight color={"#7d7d81"} onClick={this.getMetrics}>
-            <i className="material-icons">autorenew</i>
-          </Highlight>
-
+            <Highlight color={"#7d7d81"} onClick={this.getMetrics}>
+              <i className="material-icons">autorenew</i>
+            </Highlight>
           </Flex>
           </Flex>
           <RangeWrapper>
           <RangeWrapper>
             <TabSelector
             <TabSelector
@@ -577,13 +576,13 @@ export default class MetricsSection extends Component<PropsType, StateType> {
         </MetricsHeader>
         </MetricsHeader>
         {this.state.isLoading > 0 && <Loading />}
         {this.state.isLoading > 0 && <Loading />}
         {this.state.data.length === 0 && this.state.isLoading === 0 && (
         {this.state.data.length === 0 && this.state.isLoading === 0 && (
-            <Message>
-              No data available yet.
-              <Highlight color={"#8590ff"} onClick={this.getMetrics}>
-                <i className="material-icons">autorenew</i>
-                Refresh
-              </Highlight>
-            </Message>
+          <Message>
+            No data available yet.
+            <Highlight color={"#8590ff"} onClick={this.getMetrics}>
+              <i className="material-icons">autorenew</i>
+              Refresh
+            </Highlight>
+          </Message>
         )}
         )}
 
 
         {this.state.data.length > 0 && this.state.isLoading === 0 && (
         {this.state.data.length > 0 && this.state.isLoading === 0 && (
@@ -611,30 +610,15 @@ const Highlight = styled.div`
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   margin-left: 8px;
   margin-left: 8px;
-  color: ${(props: {color: string}) => props.color};
+  color: ${(props: { color: string }) => props.color};
   cursor: pointer;
   cursor: pointer;
 
 
-
   > i {
   > i {
     font-size: 20px;
     font-size: 20px;
     margin-right: 3px;
     margin-right: 3px;
   }
   }
 `;
 `;
 
 
-const RefreshMetrics = styled.span`
-  :hover {
-    cursor: pointer;
-  }
-`;
-
-const NoDataPlaceholder = styled.div`
-  width: 100%;
-  height: 100%;
-  display: flex;
-  align-items: center;
-  justify-content: center;
-`;
-
 const Label = styled.div`
 const Label = styled.div`
   font-weight: bold;
   font-weight: bold;
 `;
 `;
@@ -644,16 +628,16 @@ const Relative = styled.div`
 `;
 `;
 
 
 const Message = styled.div`
 const Message = styled.div`
-display: flex;
-height: 100%;
-width: calc(100% - 150px);
-align-items: center;
-justify-content: center;
-margin-left: 75px;
-text-align: center;
-color: #ffffff44;
-font-size: 13px;
-`
+  display: flex;
+  height: 100%;
+  width: calc(100% - 150px);
+  align-items: center;
+  justify-content: center;
+  margin-left: 75px;
+  text-align: center;
+  color: #ffffff44;
+  font-size: 13px;
+`;
 
 
 const IconWrapper = styled.div`
 const IconWrapper = styled.div`
   display: flex;
   display: flex;