@@ -11,13 +11,14 @@ import * as SearchUtils from '@libs/SearchUtils';
11
11
import CONST from '@src/CONST' ;
12
12
import type { SearchDataTypes , SearchReport } from '@src/types/onyx/SearchResults' ;
13
13
import SearchPageHeader from './SearchPageHeader' ;
14
- import type { SearchStatus , SelectedTransactionInfo , SelectedTransactions } from './types' ;
14
+ import type { SearchQueryJSON , SelectedTransactionInfo , SelectedTransactions } from './types' ;
15
15
16
16
type SearchListWithHeaderProps = Omit < BaseSelectionListProps < ReportListItemType | TransactionListItemType > , 'onSelectAll' | 'onCheckboxPress' | 'sections' > & {
17
- status : SearchStatus ;
17
+ queryJSON : SearchQueryJSON ;
18
18
hash : number ;
19
19
data : TransactionListItemType [ ] | ReportListItemType [ ] ;
20
20
searchType : SearchDataTypes ;
21
+ isCustomQuery : boolean ;
21
22
} ;
22
23
23
24
function mapTransactionItemToSelectedEntry ( item : TransactionListItemType ) : [ string , SelectedTransactionInfo ] {
@@ -38,7 +39,7 @@ function mapToItemWithSelectionInfo(item: TransactionListItemType | ReportListIt
38
39
} ;
39
40
}
40
41
41
- function SearchListWithHeader ( { ListItem, onSelectRow, status , hash, data, searchType, ...props } : SearchListWithHeaderProps , ref : ForwardedRef < SelectionListHandle > ) {
42
+ function SearchListWithHeader ( { ListItem, onSelectRow, queryJSON , hash, data, searchType, isCustomQuery , ...props } : SearchListWithHeaderProps , ref : ForwardedRef < SelectionListHandle > ) {
42
43
const { isSmallScreenWidth} = useWindowDimensions ( ) ;
43
44
const { translate} = useLocalize ( ) ;
44
45
const [ selectedTransactions , setSelectedTransactions ] = useState < SelectedTransactions > ( { } ) ;
@@ -148,10 +149,11 @@ function SearchListWithHeader({ListItem, onSelectRow, status, hash, data, search
148
149
< SearchPageHeader
149
150
selectedTransactions = { selectedTransactions }
150
151
clearSelectedItems = { clearSelectedItems }
151
- status = { status }
152
+ queryJSON = { queryJSON }
152
153
hash = { hash }
153
154
onSelectDeleteOption = { handleOnSelectDeleteOption }
154
155
selectedReports = { selectedReports }
156
+ isCustomQuery = { isCustomQuery }
155
157
setOfflineModalOpen = { ( ) => setOfflineModalVisible ( true ) }
156
158
setDownloadErrorModalOpen = { ( ) => setDownloadErrorModalVisible ( true ) }
157
159
/>
0 commit comments