@@ -37,7 +37,7 @@ import variables from '@styles/variables';
3737import type { TransactionPreviewData } from '@userActions/Search' ;
3838import CONST from '@src/CONST' ;
3939import ONYXKEYS from '@src/ONYXKEYS' ;
40- import type { CardList , Transaction , TransactionViolations } from '@src/types/onyx' ;
40+ import type { CardList , Policy , Transaction , TransactionViolations } from '@src/types/onyx' ;
4141import BaseSearchList from './BaseSearchList' ;
4242import type ChatListItem from './ListItem/ChatListItem' ;
4343import type ExpenseReportListItem from './ListItem/ExpenseReportListItem' ;
@@ -134,6 +134,8 @@ type SearchListProps = Pick<FlashListProps<SearchListItem>, 'onScroll' | 'conten
134134 /** Whether all transactions have been loaded from snapshots in group-by views */
135135 hasLoadedAllTransactions ?: boolean ;
136136
137+ policyForMovingExpenses ?: Policy ;
138+
137139 /** Reference to the outer element */
138140 ref ?: ForwardedRef < SearchListHandle > ;
139141} ;
@@ -218,6 +220,7 @@ function SearchList({
218220 nonPersonalAndWorkspaceCards,
219221 selectedTransactions,
220222 hasLoadedAllTransactions,
223+ policyForMovingExpenses,
221224 ref,
222225} : SearchListProps ) {
223226 const styles = useThemeStyles ( ) ;
@@ -443,6 +446,7 @@ function SearchList({
443446 queryJSONHash = { hash }
444447 columns = { columns }
445448 policies = { policies }
449+ policyForMovingExpenses = { policyForMovingExpenses }
446450 isDisabled = { isDisabled }
447451 groupBy = { groupBy }
448452 searchType = { type }
@@ -497,6 +501,7 @@ function SearchList({
497501 nonPersonalAndWorkspaceCards ,
498502 selectedTransactions ,
499503 ListFooterComponent ,
504+ policyForMovingExpenses ,
500505 handleUndelete ,
501506 ] ,
502507 ) ;
@@ -564,6 +569,7 @@ function SearchList({
564569 contentContainerStyle = { contentContainerStyle }
565570 newTransactions = { newTransactions }
566571 selectedTransactions = { selectedTransactions }
572+ policyForMovingExpenses = { policyForMovingExpenses }
567573 nonPersonalAndWorkspaceCards = { nonPersonalAndWorkspaceCards }
568574 />
569575 < Modal
0 commit comments