jusrhee 5 лет назад
Родитель
Сommit
eaa93250ec

+ 14 - 8
dashboard/src/components/CopyToClipboard.tsx

@@ -3,7 +3,7 @@ import ClipboardJS from "clipboard";
 import React, { Component, RefObject } from "react";
 import Tooltip from "@material-ui/core/Tooltip";
 import styled from "styled-components";
-import { styled as materialStyled } from '@material-ui/core/styles';
+import { styled as materialStyled } from "@material-ui/core/styles";
 
 type PropsType = {
   text: string;
@@ -80,12 +80,18 @@ export default class CopyToClipboard extends Component<PropsType, StateType> {
   render() {
     return (
       <Tooltip
-        title={<div style={{ 
-          fontFamily: "Work Sans, sans-serif",
-          fontSize: "12px",
-          fontWeight: "normal",
-          padding: "5px 6px",
-        }}>Copied to clipboard</div>}
+        title={
+          <div
+            style={{
+              fontFamily: "Work Sans, sans-serif",
+              fontSize: "12px",
+              fontWeight: "normal",
+              padding: "5px 6px",
+            }}
+          >
+            Copied to clipboard
+          </div>
+        }
         open={this.state.success}
         placement="bottom"
         arrow
@@ -102,4 +108,4 @@ export default class CopyToClipboard extends Component<PropsType, StateType> {
   }
 }
 
-const DynamicSpanComponent = styled.span``;
+const DynamicSpanComponent = styled.span``;

+ 1 - 2
dashboard/src/main/home/launch/expanded-template/LaunchTemplate.tsx

@@ -191,9 +191,8 @@ class LaunchTemplate extends Component<PropsType, StateType> {
           saveValuesStatus: parsedErr,
         });
 
-        
         setCurrentError(err);
-        
+
         window.analytics.track("Failed to Deploy Add-on", {
           name: this.props.currentTemplate.name,
           namespace: this.state.selectedNamespace,

+ 2 - 2
dashboard/src/shared/types.tsx

@@ -9,12 +9,12 @@ export interface ClusterType {
 
 export interface DetailedClusterType extends ClusterType {
   ingress_ip?: string;
-  ingress_error?: DetailedIngressError
+  ingress_error?: DetailedIngressError;
 }
 
 export interface DetailedIngressError {
   message: string;
-  error: string
+  error: string;
 }
 
 export interface ChartType {