Skip to content

Commit 447de70

Browse files
authored
Fix references to icons for integrations (#231)
1 parent 9093f51 commit 447de70

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed
Loading
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
export const logoCoors: { [key: string]: { x: number; y: number } } = {
2-
Grafana: { x: 9, y: 0 },
3-
'Grafana Alerting': { x: 9, y: 0 },
4-
Webhook: { x: 2, y: 14 },
5-
AlertManager: { x: 12, y: 4 },
6-
Kapacitor: { x: 10, y: 1 },
7-
Fabric: { x: 8, y: 7 },
8-
NewRelic: { x: 0, y: 11 },
9-
DataDog: { x: 3, y: 7 },
10-
PagerDuty: { x: 0, y: 0 },
11-
Pingdom: { x: 4, y: 0 },
12-
ElastAlert: { x: 0, y: 0 },
13-
'Amazon SNS': { x: 0, y: 2 },
14-
Curler: { x: 0, y: 0 },
15-
'Sentry Webhook (Onprem)': { x: 11, y: 12 },
16-
'Formatted Webhook': { x: 2, y: 14 },
17-
'HeartBeat Monitoring': { x: 2, y: 14 },
2+
grafana: { x: 9, y: 0 },
3+
grafana_alerting: { x: 9, y: 0 },
4+
webhook: { x: 2, y: 14 },
5+
alertmanager: { x: 12, y: 4 },
6+
kapacitor: { x: 10, y: 1 },
7+
fabric: { x: 8, y: 7 },
8+
newrelic: { x: 0, y: 11 },
9+
datadog: { x: 3, y: 7 },
10+
pagerduty: { x: 3, y: 1 },
11+
pingdom: { x: 4, y: 0 },
12+
elastalert: { x: 2, y: 1 },
13+
amazon_sns: { x: 0, y: 2 },
14+
curler: { x: 0, y: 0 },
15+
sentry: { x: 11, y: 12 },
16+
formatted_webhook: { x: 2, y: 14 },
17+
heartbeat_monitoring: { x: 2, y: 14 },
1818
Stackdriver: { x: 8, y: 8 },
19-
UptimeRobot: { x: 14, y: 8 },
20-
Zabbix: { x: 7, y: 14 },
21-
PRTG: { x: 12, y: 5 },
19+
uptimerobot: { x: 14, y: 8 },
20+
zabbix: { x: 7, y: 14 },
21+
prtg: { x: 12, y: 5 },
2222
};

grafana-plugin/src/components/IntegrationLogo/IntegrationLogo.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const IntegrationLogo: FC<IntegrationLogoProps> = (props) => {
2424
return null;
2525
}
2626

27-
const coors = logoCoors[integration.display_name] || { x: 2, y: 14 };
27+
const coors = logoCoors[integration.value] || { x: 2, y: 14 };
2828

2929
const bgStyle = {
3030
backgroundPosition: `-${coors?.x * LOGO_WIDTH * scale}px -${coors?.y * LOGO_WIDTH * scale}px`,

0 commit comments

Comments
 (0)