Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion config/eslint/eslint.seatbelt.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,6 @@
"../../src/pages/media/AttachmentModalScreen/routes/hooks/useReportAttachmentModalType.ts" "react-hooks/set-state-in-effect" 1
"../../src/pages/settings/AboutPage/AboutPage.tsx" "react-hooks/refs" 1
"../../src/pages/settings/PaymentCard/ChangeCurrency/index.tsx" "no-restricted-syntax" 1
"../../src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx" "@typescript-eslint/no-deprecated/InteractionManager.runAfterInteractions" 2
"../../src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx" "react-hooks/refs" 3
"../../src/pages/settings/Profile/Contacts/ContactMethodDetailsPage.tsx" "react-hooks/set-state-in-effect" 3
"../../src/pages/settings/Profile/CustomStatus/StatusClearAfterPage.tsx" "react-hooks/set-state-in-effect" 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {useIsFocused} from '@react-navigation/native';
import {Str} from 'expensify-common';
import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
// eslint-disable-next-line no-restricted-imports
import {InteractionManager} from 'react-native';
import FullPageNotFoundView from '@components/BlockingViews/FullPageNotFoundView';
import {useDelegateNoAccessActions, useDelegateNoAccessState} from '@components/DelegateNoAccessModalProvider';
import ErrorMessageRow from '@components/ErrorMessageRow';
Expand Down Expand Up @@ -198,9 +196,7 @@ function ContactMethodDetailsPage({route}: ContactMethodDetailsPageProps) {
const turnOnDeleteModal = useCallback(() => {
const openDeleteModal = async () => {
const result = await showRemoveContactMethodModal();
InteractionManager.runAfterInteractions(() => {
validateCodeFormRef.current?.focusLastSelected?.();
});
validateCodeFormRef.current?.focusLastSelected?.();
if (result.action !== ModalActions.CONFIRM) {
return;
}
Expand Down Expand Up @@ -315,9 +311,7 @@ function ContactMethodDetailsPage({route}: ContactMethodDetailsPageProps) {
<ScreenWrapper
shouldEnableMaxHeight
onEntryTransitionEnd={() => {
InteractionManager.runAfterInteractions(() => {
validateCodeFormRef.current?.focus?.();
});
validateCodeFormRef.current?.focus?.();
}}
testID="ContactMethodDetailsPage"
focusTrapSettings={{
Expand Down
Loading