From 09d266028ff8b43dbecc8933499dd920b62e14a2 Mon Sep 17 00:00:00 2001 From: Sakshi Gupta Date: Mon, 16 Feb 2026 16:24:11 +0530 Subject: [PATCH] fixed formatting --- .../CommandBar/CommandBarComponentButtonFactory.tsx | 12 +++++------- src/Explorer/SplashScreen/SplashScreen.tsx | 11 ++++++----- src/UserContext.ts | 1 - 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx index 90f12fc8a..2e6520c94 100644 --- a/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx +++ b/src/Explorer/Menus/CommandBar/CommandBarComponentButtonFactory.tsx @@ -514,8 +514,7 @@ function createOpenTerminalButtonByKind( const label = `Open ${terminalFriendlyName()} shell`; const tooltip = "This feature is not yet available in your account's region. View supported regions here: https://aka.ms/cosmos-enable-notebooks."; - const isNativeAuthDisabled = - terminalKind === ViewModels.TerminalKind.VCoreMongo && isVCoreMongoNativeAuthDisabled(); + const isNativeAuthDisabled = terminalKind === ViewModels.TerminalKind.VCoreMongo && isVCoreMongoNativeAuthDisabled(); const disableButton = (!useNotebook.getState().isNotebooksEnabledForAccount && !useNotebook.getState().isNotebookEnabled) || isNativeAuthDisabled; @@ -524,11 +523,10 @@ function createOpenTerminalButtonByKind( iconAlt: label, onCommandClick: () => { if (isNativeAuthDisabled) { - useDialog.getState().showOkModalDialog( - "Native Authentication Disabled", - VCoreMongoNativeAuthDisabledMessage, - { linkText: "Learn more", linkUrl: VCoreMongoNativeAuthLearnMoreUrl }, - ); + useDialog.getState().showOkModalDialog("Native Authentication Disabled", VCoreMongoNativeAuthDisabledMessage, { + linkText: "Learn more", + linkUrl: VCoreMongoNativeAuthLearnMoreUrl, + }); return; } if (useNotebook.getState().isNotebookEnabled || userContext.features.enableCloudShell) { diff --git a/src/Explorer/SplashScreen/SplashScreen.tsx b/src/Explorer/SplashScreen/SplashScreen.tsx index d104f8f41..fbb439069 100644 --- a/src/Explorer/SplashScreen/SplashScreen.tsx +++ b/src/Explorer/SplashScreen/SplashScreen.tsx @@ -436,11 +436,12 @@ export const SplashScreen: React.FC = ({ explorer }) => { description: "Create a collection and interact with data using MongoDB's shell interface", onClick: () => { if (isNativeAuthDisabled) { - useDialog.getState().showOkModalDialog( - "Native Authentication Disabled", - VCoreMongoNativeAuthDisabledMessage, - { linkText: "Learn more", linkUrl: VCoreMongoNativeAuthLearnMoreUrl }, - ); + useDialog + .getState() + .showOkModalDialog("Native Authentication Disabled", VCoreMongoNativeAuthDisabledMessage, { + linkText: "Learn more", + linkUrl: VCoreMongoNativeAuthLearnMoreUrl, + }); } else { container.openNotebookTerminal(TerminalKind.VCoreMongo); } diff --git a/src/UserContext.ts b/src/UserContext.ts index 6583b6441..03fb3e730 100644 --- a/src/UserContext.ts +++ b/src/UserContext.ts @@ -227,4 +227,3 @@ export function apiType(account: DatabaseAccount | undefined): ApiType { } export { updateUserContext, userContext }; -