Justin Rhee 3 years ago
parent
commit
90e9b9aea0

+ 2 - 2
dashboard/src/components/RadioFilter.tsx

@@ -208,8 +208,8 @@ const Relative = styled.div`
 
 const DropdownWrapper = styled.div<{ dropdownAlignRight?: boolean }>`
   position: absolute;
-  left: ${props => props.dropdownAlignRight ? "" : "0"};
-  right: ${props => props.dropdownAlignRight ? "0" : ""};
+  left: ${(props) => (props.dropdownAlignRight ? "" : "0")};
+  right: ${(props) => (props.dropdownAlignRight ? "0" : "")};
   z-index: 1;
   top: calc(100% + 5px);
 `;

+ 7 - 9
dashboard/src/main/home/cluster-dashboard/env-groups/ExpandedEnvGroup.tsx

@@ -518,11 +518,13 @@ const EnvGroupSettings = ({
   handleDeleteEnvGroup,
   namespace,
 }: {
-  envGroup: EditableEnvGroup ;
+  envGroup: EditableEnvGroup;
   handleDeleteEnvGroup: () => void;
   namespace?: string;
 }) => {
-  const { setCurrentOverlay, currentProject, currentCluster } = useContext(Context);
+  const { setCurrentOverlay, currentProject, currentCluster } = useContext(
+    Context
+  );
   const [isAuthorized] = useAuth();
   const [name, setName] = useState(null);
   const [cloneNamespace, setCloneNamespace] = useState(null);
@@ -551,11 +553,11 @@ const EnvGroupSettings = ({
           cluster_id: currentCluster.id,
           namespace: namespace,
         }
-      )
+      );
     } catch (error) {
       console.log(error);
     } finally {
-      alert("cloned!")
+      alert("cloned!");
     }
   };
 
@@ -633,11 +635,7 @@ const EnvGroupSettings = ({
             label="Env group namespace"
             placeholder="ex: default"
           />
-          <Button
-            onClick={cloneEnvGroup}
-          >
-            Clone {envGroup.name}
-          </Button>
+          <Button onClick={cloneEnvGroup}>Clone {envGroup.name}</Button>
         </InnerWrapper>
       )}
     </TabWrapper>