File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ import type { WorkspacesService } from '@mongodb-js/compass-workspaces/provider'
1717import { WorkspacesServiceProvider } from '@mongodb-js/compass-workspaces/provider' ;
1818import { TestMongoDBInstanceManager } from '@mongodb-js/compass-app-stores/provider' ;
1919import { ConnectionImportExportProvider } from '@mongodb-js/compass-connection-import-export' ;
20- import { AtlasClusterConnectionsOnly , CompassSidebarPlugin } from '../../index' ;
20+ import {
21+ AtlasClusterConnectionsOnlyProvider ,
22+ CompassSidebarPlugin ,
23+ } from '../../index' ;
2124import type { ConnectionInfo } from '@mongodb-js/compass-connections/provider' ;
2225import type AppRegistry from '../../../../hadron-app-registry/dist' ;
2326
@@ -119,11 +122,11 @@ describe('Multiple Connections Sidebar Component', function () {
119122
120123 if ( atlasClusterConnectionsOnly !== undefined ) {
121124 component = (
122- < AtlasClusterConnectionsOnly . Provider
125+ < AtlasClusterConnectionsOnlyProvider
123126 value = { atlasClusterConnectionsOnly }
124127 >
125128 { component }
126- </ AtlasClusterConnectionsOnly . Provider >
129+ </ AtlasClusterConnectionsOnlyProvider >
127130 ) ;
128131 }
129132
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import type { ConnectionsService } from '@mongodb-js/compass-connections/provide
1212import { connectionsLocator } from '@mongodb-js/compass-connections/provider' ;
1313import type { Logger } from '@mongodb-js/compass-logging/provider' ;
1414import { createLoggerLocator } from '@mongodb-js/compass-logging/provider' ;
15- export { AtlasClusterConnectionsOnly } from './components/multiple-connections/connections-navigation' ;
15+ import { AtlasClusterConnectionsOnly } from './components/multiple-connections/connections-navigation' ;
1616
1717export const CompassSidebarPlugin = registerHadronPlugin (
1818 {
@@ -54,3 +54,6 @@ export const CompassSidebarPlugin = registerHadronPlugin(
5454 logger : createLoggerLocator ( 'COMPASS-SIDEBAR-UI' ) ,
5555 }
5656) ;
57+
58+ export const AtlasClusterConnectionsOnlyProvider =
59+ AtlasClusterConnectionsOnly . Provider ;
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
2121} from '@mongodb-js/compass-collection' ;
2222import {
2323 CompassSidebarPlugin ,
24- AtlasClusterConnectionsOnly ,
24+ AtlasClusterConnectionsOnlyProvider ,
2525} from '@mongodb-js/compass-sidebar' ;
2626import CompassQueryBarPlugin from '@mongodb-js/compass-query-bar' ;
2727import { CompassDocumentsPlugin } from '@mongodb-js/compass-crud' ;
@@ -64,13 +64,13 @@ import { useCompassWebPreferences } from './preferences';
6464const WithAtlasProviders : React . FC = ( { children } ) => {
6565 return (
6666 < AtlasCloudAuthServiceProvider >
67- < AtlasClusterConnectionsOnly . Provider value = { true } >
67+ < AtlasClusterConnectionsOnlyProvider value = { true } >
6868 < AtlasServiceProvider >
6969 < AtlasAiServiceProvider apiURLPreset = "cloud" >
7070 { children }
7171 </ AtlasAiServiceProvider >
7272 </ AtlasServiceProvider >
73- </ AtlasClusterConnectionsOnly . Provider >
73+ </ AtlasClusterConnectionsOnlyProvider >
7474 </ AtlasCloudAuthServiceProvider >
7575 ) ;
7676} ;
You can’t perform that action at this time.
0 commit comments