Skip to content

Commit

Permalink
Merge pull request #65 from atlanhq/bug-fixes
Browse files Browse the repository at this point in the history
fix: show nothing if no image is found and add sigma and mode icons
  • Loading branch information
Jaagrav authored Mar 1, 2023
2 parents a588f53 + 05641c2 commit f50dbf4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/get-image-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export function getImageURL(name, height = 20, width = 20) {
return `<img src="${hostedImages[name].url}" alt="${hostedImages[name].alt}" height="${height}" width="${width}"/>`;
} catch (e) {
console.log(name);
return '';
}
}

Expand Down
8 changes: 8 additions & 0 deletions src/utils/hosted-images.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,4 +119,12 @@ export default {
alt: "Connector Tableau",
url: "https://assets.atlan.com/assets/tableau.svg",
},
"connector-mode": {
alt: "Connector Mode",
url: "https://iili.io/HVTAlgs.png"
},
"connector-sigma": {
alt: "Connector Sigma",
url: "https://iili.io/HVTA1dG.png"
}
};

0 comments on commit f50dbf4

Please sign in to comment.