Skip to content

Commit 857ea6d

Browse files
committed
revert unnecessary changes
1 parent 5e21bd5 commit 857ea6d

3 files changed

Lines changed: 8 additions & 13 deletions

File tree

src/HybridAppHandler.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ function HybridAppHandler() {
2828
return;
2929
}
3030

31-
const parsedHybridAppSettings = parseHybridAppSettings(hybridAppSettings);
32-
setupNewDotAfterTransitionFromOldDot(parsedHybridAppSettings, tryNewDot).then(() => {
31+
setupNewDotAfterTransitionFromOldDot(parseHybridAppSettings(hybridAppSettings), tryNewDot).then(() => {
3332
if (splashScreenState !== CONST.BOOT_SPLASH_STATE.VISIBLE) {
3433
return;
3534
}

src/pages/signin/ChooseSSOOrMagicCode.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import {useFocusEffect} from '@react-navigation/native';
2-
import React, {useCallback} from 'react';
1+
import React, {useEffect} from 'react';
32
import {Keyboard, View} from 'react-native';
43
import Button from '@components/Button';
54
import FormHelpMessage from '@components/FormHelpMessage';
@@ -35,14 +34,12 @@ function ChooseSSOOrMagicCode({setIsUsingMagicCode}: ChooseSSOOrMagicCodeProps)
3534
const [account] = useOnyx(ONYXKEYS.ACCOUNT, {canBeMissing: true});
3635

3736
// This view doesn't have a field for user input, so dismiss the device keyboard if shown
38-
useFocusEffect(
39-
useCallback(() => {
40-
if (!isKeyboardShown) {
41-
return;
42-
}
43-
Keyboard.dismiss();
44-
}, [isKeyboardShown]),
45-
);
37+
useEffect(() => {
38+
if (!isKeyboardShown) {
39+
return;
40+
}
41+
Keyboard.dismiss();
42+
}, [isKeyboardShown]);
4643

4744
return (
4845
<>

src/pages/signin/SignInPage.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,6 @@ function SignInPage({shouldEnableMaxHeight = true}: SignInPageInnerProps, ref: F
302302
useImperativeHandle(ref, () => ({
303303
navigateBack,
304304
}));
305-
306305
return (
307306
// Bottom SafeAreaView is removed so that login screen svg displays correctly on mobile.
308307
// The SVG should flow under the Home Indicator on iOS.

0 commit comments

Comments
 (0)