File tree Expand file tree Collapse file tree
src/components/Search/SearchList/ListItem Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React , { useMemo } from 'react' ;
22import type { ColorValue } from 'react-native' ;
33import { View } from 'react-native' ;
4- // eslint-disable-next-line no-restricted-imports
5- import { useOnyx as originalUseOnyx } from 'react-native-onyx' ;
64import Checkbox from '@components/Checkbox' ;
75import { useDelegateNoAccessActions , useDelegateNoAccessState } from '@components/DelegateNoAccessModalProvider' ;
86import Icon from '@components/Icon' ;
@@ -222,7 +220,7 @@ function ReportListItemHeader<TItem extends ListItem>({
222220 const snapshotPolicy = useMemo ( ( ) => {
223221 return ( snapshot ?. data ?. [ `${ ONYXKEYS . COLLECTION . POLICY } ${ reportItem . policyID } ` ] ?? { } ) as Policy ;
224222 } , [ snapshot , reportItem . policyID ] ) ;
225- const [ parentPolicy ] = originalUseOnyx ( `${ ONYXKEYS . COLLECTION . POLICY } ${ getNonEmptyStringOnyxID ( snapshotReport ?. policyID ?? reportItem . policyID ) } ` ) ;
223+ const [ parentPolicy ] = useOnyx ( `${ ONYXKEYS . COLLECTION . POLICY } ${ getNonEmptyStringOnyxID ( snapshotReport ?. policyID ?? reportItem . policyID ) } ` ) ;
226224 const { isDelegateAccessRestricted} = useDelegateNoAccessState ( ) ;
227225 const { showDelegateNoAccessModal} = useDelegateNoAccessActions ( ) ;
228226 const [ amountOwed ] = useOnyx ( ONYXKEYS . NVP_PRIVATE_AMOUNT_OWED ) ;
You can’t perform that action at this time.
0 commit comments