Jelajahi Sumber

Iam docs (#2806)

* install github app button

* show create cluster when no clusters are connected

* link to iam docs
jusrhee 3 tahun lalu
induk
melakukan
56a6e35085
1 mengubah file dengan 18 tambahan dan 0 penghapusan
  1. 18 0
      dashboard/src/components/CredentialsForm.tsx

+ 18 - 0
dashboard/src/components/CredentialsForm.tsx

@@ -184,6 +184,9 @@ const CredentialsForm: React.FC<Props> = ({
         <Spacer />
         <Img src={aws} />
         Set AWS credentials
+        <HelperButton onClick={() => window.open("https://docs.porter.run/getting-started/provisioning-on-aws/", "_blank")}>
+          <i className="material-icons">help_outline</i>
+        </HelperButton>
       </Heading>
       <Helper>
         Select your credentials from the list below, or add a new set of credentials:
@@ -201,6 +204,21 @@ const CredentialsForm: React.FC<Props> = ({
 
 export default CredentialsForm;
 
+const HelperButton = styled.div`
+  cursor: pointer;
+  display: flex;
+  align-items: center;
+  margin-left: 10px;
+  justify-content: center;
+  > i {
+    color: #aaaabb;
+    width: 24px;
+    height: 24px;
+    font-size: 20px;
+    border-radius: 20px;
+  }
+`;
+
 const CloseButton = styled.div`
   position: absolute;
   top: 15px;