Skip to content

Commit 7387e01

Browse files
committed
Merge remote-tracking branch 'origin/bring-back-new-sign-in-page' into bring-back-new-sign-in-page
2 parents 297ca08 + b491344 commit 7387e01

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/pages/ValidateLoginPage/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import React, {useEffect} from 'react';
22
import {useOnyx} from 'react-native-onyx';
33
import FullScreenLoadingIndicator from '@components/FullscreenLoadingIndicator';
44
import Navigation from '@libs/Navigation/Navigation';
5-
import * as Session from '@userActions/Session';
6-
import CONST from '@src/CONST';
7-
import ONYXKEYS from '@src/ONYXKEYS';
85
import {setNewDotSignInState} from '@userActions/HybridApp';
6+
import {handleExitToNavigation, signInWithValidateCodeAndNavigate} from '@userActions/Session';
97
import CONFIG from '@src/CONFIG';
8+
import CONST from '@src/CONST';
9+
import ONYXKEYS from '@src/ONYXKEYS';
1010
import type ValidateLoginPageProps from './types';
1111

1212
function 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

Comments
 (0)