@@ -2,11 +2,11 @@ import React, {useEffect} from 'react';
22import { useOnyx } from 'react-native-onyx' ;
33import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator' ;
44import Navigation from '@libs/Navigation/Navigation' ;
5- import * as Session from '@userActions/Session' ;
6- import CONST from '@src/CONST' ;
7- import ONYXKEYS from '@src/ONYXKEYS' ;
85import { setNewDotSignInState } from '@userActions/HybridApp' ;
6+ import { handleExitToNavigation , signInWithValidateCodeAndNavigate } from '@userActions/Session' ;
97import CONFIG from '@src/CONFIG' ;
8+ import CONST from '@src/CONST' ;
9+ import ONYXKEYS from '@src/ONYXKEYS' ;
1010import type ValidateLoginPageProps from './types' ;
1111
1212function ValidateLoginPage ( {
@@ -23,17 +23,17 @@ function ValidateLoginPage({
2323 // If already signed in, do not show the validate code if not on web,
2424 // because we don't want to block the user with the interstitial page.
2525 if ( exitTo ) {
26- Session . handleExitToNavigation ( exitTo ) ;
26+ handleExitToNavigation ( exitTo ) ;
2727 return ;
2828 }
2929 Navigation . goBack ( ) ;
3030 } else {
3131 // On HybridApp we need to orchestrate the sign-in flow of both apps so we need to set the state to STARTED here
32- if ( CONFIG . IS_HYBRID_APP ) {
32+ if ( CONFIG . IS_HYBRID_APP ) {
3333 setNewDotSignInState ( CONST . HYBRID_APP_SIGN_IN_STATE . STARTED ) ;
3434 }
3535
36- Session . signInWithValidateCodeAndNavigate ( Number ( accountID ) , validateCode , '' , exitTo ) ;
36+ signInWithValidateCodeAndNavigate ( Number ( accountID ) , validateCode , '' , exitTo ) ;
3737 }
3838 } ) ;
3939 // eslint-disable-next-line react-compiler/react-compiler, react-hooks/exhaustive-deps
0 commit comments