@@ -12,7 +12,6 @@ import ConfirmModal from '@components/ConfirmModal';
1212import DecisionModal from '@components/DecisionModal' ;
1313import FlatList from '@components/FlatList' ;
1414import { AUTOSCROLL_TO_TOP_THRESHOLD } from '@components/InvertedFlatList/BaseInvertedFlatList' ;
15- import { usePersonalDetails } from '@components/OnyxListItemProvider' ;
1615import { PressableWithFeedback } from '@components/Pressable' ;
1716import { useSearchContext } from '@components/Search/SearchContext' ;
1817import Text from '@components/Text' ;
@@ -45,7 +44,7 @@ import {
4544 shouldReportActionBeVisible ,
4645 wasMessageReceivedWhileOffline ,
4746} from '@libs/ReportActionsUtils' ;
48- import { canUserPerformWriteAction , chatIncludesChronosWithID , getOriginalReportID , getReportLastVisibleActionCreated , isUnread } from '@libs/ReportUtils' ;
47+ import { canUserPerformWriteAction , chatIncludesChronosWithID , getReportLastVisibleActionCreated , isUnread } from '@libs/ReportUtils' ;
4948import markOpenReportEnd from '@libs/Telemetry/markOpenReportEnd' ;
5049import { isTransactionPendingDelete } from '@libs/TransactionUtils' ;
5150import Visibility from '@libs/Visibility' ;
@@ -142,13 +141,6 @@ function MoneyRequestReportActionsList({
142141 selector : ( parentReportActions ) => getParentReportAction ( parentReportActions , report ?. parentReportActionID ) ,
143142 } ) ;
144143
145- const [ userWallet ] = useOnyx ( ONYXKEYS . USER_WALLET , { canBeMissing : false } ) ;
146- const [ isUserValidated ] = useOnyx ( ONYXKEYS . ACCOUNT , { selector : ( account ) => account ?. validated , canBeMissing : true } ) ;
147- const [ userBillingFundID ] = useOnyx ( ONYXKEYS . NVP_BILLING_FUND_ID , { canBeMissing : true } ) ;
148- const personalDetails = usePersonalDetails ( ) ;
149- const [ emojiReactions ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS_REACTIONS } ` , { canBeMissing : true } ) ;
150- const [ draftMessage ] = useOnyx ( `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS_DRAFTS } ` , { canBeMissing : true } ) ;
151-
152144 const transactionsWithoutPendingDelete = useMemo ( ( ) => transactions . filter ( ( t ) => ! isTransactionPendingDelete ( t ) ) , [ transactions ] ) ;
153145 const mostRecentIOUReportActionID = useMemo ( ( ) => getMostRecentIOURequestActionID ( reportActions ) , [ reportActions ] ) ;
154146 const transactionThreadReportID = getOneTransactionThreadReportID ( report , chatReport , reportActions ?? [ ] , false , reportTransactionIDs ) ;
@@ -479,12 +471,6 @@ function MoneyRequestReportActionsList({
479471 ! isConsecutiveChronosAutomaticTimerAction ( visibleReportActions , index , chatIncludesChronosWithID ( reportAction ?. reportID ) ) &&
480472 hasNextActionMadeBySameActor ( visibleReportActions , index ) ;
481473
482- const actionEmojiReactions = emojiReactions ?. [ `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS_REACTIONS } ${ reportAction . reportActionID } ` ] ;
483- const originalReportID = getOriginalReportID ( report . reportID , reportAction ) ;
484- const reportDraftMessages = draftMessage ?. [ `${ ONYXKEYS . COLLECTION . REPORT_ACTIONS_DRAFTS } ${ originalReportID } ` ] ;
485- const matchingDraftMessage = reportDraftMessages ?. [ reportAction . reportActionID ] ;
486- const matchingDraftMessageString = typeof matchingDraftMessage === 'string' ? matchingDraftMessage : matchingDraftMessage ?. message ;
487-
488474 return (
489475 < ReportActionsListItemRenderer
490476 allReports = { allReports }
@@ -503,12 +489,6 @@ function MoneyRequestReportActionsList({
503489 isFirstVisibleReportAction = { firstVisibleReportActionID === reportAction . reportActionID }
504490 shouldHideThreadDividerLine
505491 linkedReportActionID = { linkedReportActionID }
506- userWallet = { userWallet }
507- isUserValidated = { isUserValidated }
508- personalDetails = { personalDetails }
509- userBillingFundID = { userBillingFundID }
510- emojiReactions = { actionEmojiReactions }
511- draftMessage = { matchingDraftMessageString }
512492 />
513493 ) ;
514494 } ,
@@ -524,12 +504,6 @@ function MoneyRequestReportActionsList({
524504 linkedReportActionID ,
525505 allReports ,
526506 policies ,
527- userWallet ,
528- isUserValidated ,
529- personalDetails ,
530- userBillingFundID ,
531- emojiReactions ,
532- draftMessage ,
533507 ] ,
534508 ) ;
535509
0 commit comments