Skip to content

Commit

Permalink
fixup: remove comments, auth plugin activate
Browse files Browse the repository at this point in the history
  • Loading branch information
Anemy committed Nov 5, 2024
1 parent b75899d commit a5cd319
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
15 changes: 15 additions & 0 deletions packages/atlas-service/src/renderer.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
import { registerHadronPlugin } from 'hadron-app-registry';
import { activatePlugin } from './store/atlas-signin-store';
import { atlasAuthServiceLocator } from './provider';

export const AtlasAuthPlugin = registerHadronPlugin(
{
name: 'AtlasAuth',
component: () => null,
activate: activatePlugin,
},
{
atlasAuthService: atlasAuthServiceLocator,
}
);
export default AtlasAuthPlugin;
export { AtlasServiceError } from './util';
export type { AtlasUserInfo } from './util';
export { CompassAtlasAuthService } from './compass-atlas-auth-service';
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ const AISignInModal: React.FunctionComponent<SignInModalProps> = ({
onSignInModalClose,
onSignInClick,
}) => {
// const useSi // Is sign in in progress hook?

const darkMode = useDarkMode();

return (
Expand Down
4 changes: 2 additions & 2 deletions packages/compass/src/app/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { getExtraConnectionData } from '../utils/telemetry';
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
import { CompassInstanceStorePlugin } from '@mongodb-js/compass-app-stores';
import FieldStorePlugin from '@mongodb-js/compass-field-store';
// import { AtlasAuthPlugin } from '@mongodb-js/atlas-service/renderer';
import { AtlasAuthPlugin } from '@mongodb-js/atlas-service/renderer';
import { CompassGenerativeAIPlugin } from '@mongodb-js/compass-generative-ai';
import type { WorkspaceTab } from '@mongodb-js/compass-workspaces';
import { ConnectionStorageProvider } from '@mongodb-js/connection-storage/provider';
Expand Down Expand Up @@ -220,7 +220,7 @@ function Home({
/>
<CompassSettingsPlugin></CompassSettingsPlugin>
<CompassFindInPagePlugin></CompassFindInPagePlugin>
{/* <AtlasAuthPlugin></AtlasAuthPlugin> */}
<AtlasAuthPlugin></AtlasAuthPlugin>
<CompassGenerativeAIPlugin></CompassGenerativeAIPlugin>
<LegacyConnectionsModal />
</FieldStorePlugin>
Expand Down

0 comments on commit a5cd319

Please sign in to comment.