Justin Rhee %!s(int64=3) %!d(string=hai) anos
pai
achega
9ecd09c844

+ 12 - 13
dashboard/src/main/home/cluster-dashboard/env-groups/ExpandedEnvGroup.tsx

@@ -522,9 +522,12 @@ const EnvGroupSettings = ({
   handleDeleteEnvGroup: () => void;
   namespace?: string;
 }) => {
-  const { setCurrentOverlay, currentProject, currentCluster, setCurrentError } = useContext(
-    Context
-  );
+  const {
+    setCurrentOverlay,
+    currentProject,
+    currentCluster,
+    setCurrentError,
+  } = useContext(Context);
   const [isAuthorized] = useAuth();
   const [name, setName] = useState(null);
   const [cloneNamespace, setCloneNamespace] = useState(null);
@@ -639,16 +642,12 @@ const EnvGroupSettings = ({
           />
           <FlexAlt>
             <Button onClick={cloneEnvGroup}>Clone {envGroup.name}</Button>
-            {
-              cloneSuccess && (
-                <StatusWrapper position="right" successful={true}>
-                  <i className="material-icons">done</i>
-                  <StatusTextWrapper>
-                  Successfully cloned 
-                  </StatusTextWrapper>
-                </StatusWrapper>
-              )
-            }
+            {cloneSuccess && (
+              <StatusWrapper position="right" successful={true}>
+                <i className="material-icons">done</i>
+                <StatusTextWrapper>Successfully cloned</StatusTextWrapper>
+              </StatusWrapper>
+            )}
           </FlexAlt>
         </InnerWrapper>
       )}

+ 4 - 2
dashboard/src/main/home/launch/Launch.tsx

@@ -59,8 +59,10 @@ class Templates extends Component<PropsType, StateType> {
   };
 
   async componentDidMount() {
-    let default_addon_helm_repo_url = this.context?.capabilities?.default_addon_helm_repo_url;
-    let default_app_helm_repo_url = this.context?.capabilities?.default_app_helm_repo_url;
+    let default_addon_helm_repo_url = this.context?.capabilities
+      ?.default_addon_helm_repo_url;
+    let default_app_helm_repo_url = this.context?.capabilities
+      ?.default_app_helm_repo_url;
     try {
       const res = await api.getTemplates(
         "<token>",

+ 1 - 7
dashboard/src/main/home/launch/LaunchWrapper.tsx

@@ -8,13 +8,7 @@ type Props = {};
 
 const LaunchWrapper: React.FC<Props> = (props) => {
   const { capabilities } = useContext(Context);
-  return (
-    <>
-      {
-        capabilities && <Launch />
-      }
-    </>
-  );
+  return <>{capabilities && <Launch />}</>;
 };
 
 export default LaunchWrapper;

+ 3 - 1
dashboard/src/main/home/new-project/WelcomeForm.tsx

@@ -78,7 +78,9 @@ const WelcomeForm = (props: any) => {
         ) : (
           <form name="demo" onSubmit={submitForm}>
             <Title>Book a Demo</Title>
-            <Subtitle>Talk to an expert to determine if Porter is a right fit for you.</Subtitle>
+            <Subtitle>
+              Talk to an expert to determine if Porter is a right fit for you.
+            </Subtitle>
             <SubtitleAlt>
               <Num>1</Num> What is your work email? *
             </SubtitleAlt>