Skip to content

Commit

Permalink
fix: Match Azure/GCP Application Icons (#48848)
Browse files Browse the repository at this point in the history
  • Loading branch information
kiosion authored Nov 13, 2024
1 parent bb8c2f3 commit 9b2b1fe
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export function guessAppIcon(resource: UnifiedResourceApp): ResourceIconName {
}

// Help match brands with sub brands:

if (match('adobe', app)) {
if (match('creative', app)) return 'adobecreativecloud';
if (match('marketo', app)) return 'adobemarketo';
Expand Down Expand Up @@ -87,6 +86,12 @@ export function guessAppIcon(resource: UnifiedResourceApp): ResourceIconName {
if (match('word', app)) return 'microsoftword';
return 'microsoft'; // generic
}
if (match('gcp', app)) {
return 'googlecloud';
}
if (match('azure', app)) {
return 'azure';
}

// Try matching by iterating through all the icon names
const matchingIcon = iconNames.find(iconName => match(iconName, app));
Expand Down

0 comments on commit 9b2b1fe

Please sign in to comment.