11import { findFocusedRoute , useFocusEffect , useIsFocused , useNavigation } from '@react-navigation/native' ;
22import * as Sentry from '@sentry/react-native' ;
3- import React , { useCallback , useContext , useEffect , useMemo , useRef , useState } from 'react' ;
3+ import React , { useCallback , useEffect , useMemo , useRef , useState } from 'react' ;
44import type { NativeScrollEvent , NativeSyntheticEvent , StyleProp , ViewStyle } from 'react-native' ;
55import { View } from 'react-native' ;
66import type { OnyxEntry } from 'react-native-onyx' ;
@@ -11,7 +11,7 @@ import {ModalActions} from '@components/Modal/Global/ModalContext';
1111import SearchTableHeader from '@components/SelectionListWithSections/SearchTableHeader' ;
1212import type { ReportActionListItemType , SearchListItem , SelectionListHandle , TransactionGroupListItemType , TransactionListItemType } from '@components/SelectionListWithSections/types' ;
1313import SearchRowSkeleton from '@components/Skeletons/SearchRowSkeleton' ;
14- import { WideRHPContext } from '@components/WideRHPContextProvider' ;
14+ import { useWideRHPActions } from '@components/WideRHPContextProvider' ;
1515import useArchivedReportsIdSet from '@hooks/useArchivedReportsIdSet' ;
1616import useCardFeedsForDisplay from '@hooks/useCardFeedsForDisplay' ;
1717import useConfirmModal from '@hooks/useConfirmModal' ;
@@ -222,7 +222,7 @@ function Search({
222222 const { isSmallScreenWidth, isLargeScreenWidth} = useResponsiveLayout ( ) ;
223223 const navigation = useNavigation < PlatformStackNavigationProp < SearchFullscreenNavigatorParamList > > ( ) ;
224224 const isFocused = useIsFocused ( ) ;
225- const { markReportIDAsExpense} = useContext ( WideRHPContext ) ;
225+ const { markReportIDAsExpense} = useWideRHPActions ( ) ;
226226 const {
227227 currentSearchHash,
228228 setCurrentSearchHashAndKey,
@@ -255,7 +255,7 @@ function Search({
255255 const [ customCardNames ] = useOnyx ( ONYXKEYS . NVP_EXPENSIFY_COMPANY_CARDS_CUSTOM_NAMES , { canBeMissing : true } ) ;
256256
257257 const isExpenseReportType = type === CONST . SEARCH . DATA_TYPES . EXPENSE_REPORT ;
258- const { markReportIDAsMultiTransactionExpense, unmarkReportIDAsMultiTransactionExpense} = useContext ( WideRHPContext ) ;
258+ const { markReportIDAsMultiTransactionExpense, unmarkReportIDAsMultiTransactionExpense} = useWideRHPActions ( ) ;
259259
260260 const archivedReportsIdSet = useArchivedReportsIdSet ( ) ;
261261
0 commit comments