diff --git a/frontend/src/LoginPage/LoginPage.jsx b/frontend/src/LoginPage/LoginPage.jsx
index 303eb03978..c1facb26a2 100644
--- a/frontend/src/LoginPage/LoginPage.jsx
+++ b/frontend/src/LoginPage/LoginPage.jsx
@@ -2,8 +2,6 @@ import React from 'react';
import { authenticationService } from '@/_services';
import { toast } from 'react-hot-toast';
import { Link, Navigate } from 'react-router-dom';
-import GoogleSSOLoginButton from '@ee/components/LoginPage/GoogleSSOLoginButton';
-import GitSSOLoginButton from '@ee/components/LoginPage/GitSSOLoginButton';
import { validateEmail } from '@/_helpers/utils';
import { withTranslation } from 'react-i18next';
import OnboardingNavbar from '@/_components/OnboardingNavbar';
@@ -18,6 +16,7 @@ import { setCookie } from '@/_helpers/cookie';
import { onLoginSuccess } from '@/_helpers/platform/utils/auth.utils';
import { updateCurrentSession } from '@/_helpers/authorizeWorkspace';
import cx from 'classnames';
+import SSOLoginModule from './SSOLoginModule';
class LoginPageComponent extends React.Component {
constructor(props) {
@@ -119,6 +118,8 @@ class LoginPageComponent extends React.Component {
render() {
const { configs, currentOrganizationName } = this.props;
const { isLoading } = this.state;
+ const shouldShowLoginMethods = configs?.google?.enabled || configs?.git?.enabled || configs?.form?.enabled;
+ const noLoginMethodsEnabled = !configs?.form && !configs?.git && !configs?.google;
const workspaceSignUpEnabled = this.organizationId && configs?.enable_sign_up;
const instanceSignUpEnabled = !this.organizationId && (configs?.form?.enable_sign_up || configs?.enable_sign_up);
const isSignUpCTAEnabled = workspaceSignUpEnabled || instanceSignUpEnabled;
@@ -140,7 +141,7 @@ class LoginPageComponent extends React.Component {