File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
airbyte-integrations/connectors/destination-rabbitmq Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ import React from "react";
2
2
import { useEffect , useState } from "react" ;
3
3
4
4
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" ;
8
6
9
7
const iconStyle = { maxWidth : 25 } ;
10
8
@@ -35,7 +33,7 @@ export default function ConnectorRegistry({ type }) {
35
33
const [ registry , setRegistry ] = useState ( [ ] ) ;
36
34
37
35
useEffect ( ( ) => {
38
- fetchCatalog ( registry_url , setRegistry ) ;
36
+ fetchCatalog ( REGISTRY_URL , setRegistry ) ;
39
37
} , [ ] ) ;
40
38
41
39
if ( registry . length === 0 ) return < div > { `Loading ${ type } s...` } </ div > ;
Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ const fetchCatalog = async () => {
9
9
} ;
10
10
11
11
module . exports = {
12
+ REGISTRY_URL ,
12
13
catalog : fetchCatalog ( ) ,
13
14
isPypiConnector : ( connector ) => {
14
15
return Boolean ( connector . remoteRegistries_oss ?. pypi ?. enabled ) ;
15
- }
16
- }
16
+ } ,
17
+ } ;
You can’t perform that action at this time.
0 commit comments