Kaynağa Gözat

fix: view repo not linking to github repo

Soham Parekh 3 yıl önce
ebeveyn
işleme
4e9a864adb

+ 8 - 9
dashboard/src/main/home/cluster-dashboard/preview-environments/environments/EnvironmentCard.tsx

@@ -113,16 +113,15 @@ const EnvironmentCard = ({ environment, onDelete }: Props) => {
             <RepoLink
               to={`https://github.com/${git_repo_owner}/${git_repo_name}`}
               target="_blank"
-              // TODO (soham): FIXME
-              // onClick={(e) => {
-              //   e.preventDefault();
-              //   e.stopPropagation();
+              onClick={(e) => {
+                e.preventDefault();
+                e.stopPropagation();
 
-              //   window.open(
-              //     `https://github.com/${git_repo_owner}/${git_repo_name}`,
-              //     "_blank"
-              //   );
-              // }}
+                window.open(
+                  `https://github.com/${git_repo_owner}/${git_repo_name}`,
+                  "_blank"
+                );
+              }}
             >
               <i className="material-icons">open_in_new</i>
               View Repo