@@ -6,10 +6,11 @@ import { Box, NavigateLink, SpaceBetween } from 'components';
66import { UnauthorizedLayout } from 'layouts/UnauthorizedLayout' ;
77
88import { ROUTES } from 'routes' ;
9- import { useGetEntraInfoQuery , useGetOktaInfoQuery } from 'services/auth' ;
9+ import { useGetEntraInfoQuery , useGetOktaInfoQuery , useGetGoogleInfoQuery } from 'services/auth' ;
1010
1111import { LoginByEntraID } from '../EntraID/LoginByEntraID' ;
1212import { LoginByOkta } from '../LoginByOkta' ;
13+ import { LoginByGoogle } from '../LoginByGoogle' ;
1314import { LoginByTokenForm } from '../LoginByTokenForm' ;
1415
1516import styles from './styles.module.scss' ;
@@ -18,9 +19,11 @@ export const EnterpriseLogin: React.FC = () => {
1819 const { t } = useTranslation ( ) ;
1920 const { data : oktaData , isLoading : isLoadingOkta } = useGetOktaInfoQuery ( ) ;
2021 const { data : entraData , isLoading : isLoadingEntra } = useGetEntraInfoQuery ( ) ;
22+ const { data : googleData , isLoading : isLoadingGoogle } = useGetGoogleInfoQuery ( ) ;
2123
2224 const oktaEnabled = oktaData ?. enabled ;
2325 const entraEnabled = entraData ?. enabled ;
26+ const googleEnabled = googleData ?. enabled ;
2427
2528 const isLoading = isLoadingOkta || isLoadingEntra ;
2629 const isShowTokenForm = ! oktaEnabled && ! entraEnabled ;
@@ -36,6 +39,7 @@ export const EnterpriseLogin: React.FC = () => {
3639 { ! isLoading && isShowTokenForm && < LoginByTokenForm /> }
3740 { ! isLoadingOkta && oktaEnabled && < LoginByOkta className = { styles . okta } /> }
3841 { ! isLoadingEntra && entraEnabled && < LoginByEntraID className = { styles . entra } /> }
42+ { ! isLoadingGoogle && googleEnabled && < LoginByGoogle className = { styles . google } /> }
3943
4044 { ! isLoading && ! isShowTokenForm && (
4145 < Box color = "text-body-secondary" >
0 commit comments