Skip to content

Commit 0458b1d

Browse files
authored
fix rabbitmq icon and simplify docs registry code (#36767)
1 parent ddeaa3f commit 0458b1d

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed
Lines changed: 1 addition & 1 deletion
Loading

docusaurus/src/components/ConnectorRegistry.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ import React from "react";
22
import { useEffect, useState } from "react";
33

44
import styles from "./ConnectorRegistry.module.css";
5-
6-
const registry_url =
7-
"https://connectors.airbyte.com/files/generated_reports/connector_registry_report.json";
5+
import { REGISTRY_URL } from "../connector_registry";
86

97
const iconStyle = { maxWidth: 25 };
108

@@ -35,7 +33,7 @@ export default function ConnectorRegistry({ type }) {
3533
const [registry, setRegistry] = useState([]);
3634

3735
useEffect(() => {
38-
fetchCatalog(registry_url, setRegistry);
36+
fetchCatalog(REGISTRY_URL, setRegistry);
3937
}, []);
4038

4139
if (registry.length === 0) return <div>{`Loading ${type}s...`}</div>;

docusaurus/src/connector_registry.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ const fetchCatalog = async () => {
99
};
1010

1111
module.exports = {
12+
REGISTRY_URL,
1213
catalog: fetchCatalog(),
1314
isPypiConnector: (connector) => {
1415
return Boolean(connector.remoteRegistries_oss?.pypi?.enabled);
15-
}
16-
}
16+
},
17+
};

0 commit comments

Comments
 (0)