File tree Expand file tree Collapse file tree
src/components/Search/SearchList Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ type SearchListActionProps = {
4848} ;
4949
5050type ChatListItemProps < TItem extends ListItem > = ListItemProps < TItem > & {
51- queryJSONHash ?: number ;
52-
5351 /** The report data */
5452 report ?: Report ;
5553
@@ -434,7 +432,6 @@ type TransactionGroupListItemProps<TItem extends ListItem> = ListItemProps<TItem
434432 SearchListActionProps & {
435433 groupBy ?: SearchGroupBy ;
436434 searchType ?: SearchDataTypes ;
437- policies ?: OnyxCollection < Policy > ;
438435 accountID ?: number ;
439436 columns ?: SearchColumnType [ ] ;
440437 newTransactionID ?: string ;
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ function SearchList({
229229 const styles = useThemeStyles ( ) ;
230230 const expensifyIcons = useMemoizedLazyExpensifyIcons ( [ 'CheckSquare' ] ) ;
231231
232- const { hash , groupBy, type} = queryJSON ;
232+ const { groupBy, type} = queryJSON ;
233233 const flattenedItems = useMemo ( ( ) => {
234234 if ( groupBy || type === CONST . SEARCH . DATA_TYPES . EXPENSE_REPORT ) {
235235 if ( ! isTransactionGroupListItemArray ( data ) ) {
@@ -299,8 +299,6 @@ function SearchList({
299299 const [ isModalVisible , setIsModalVisible ] = useState ( false ) ;
300300 const [ longPressedItem , setLongPressedItem ] = useState < SearchListItem > ( ) ;
301301
302- const [ policies ] = useOnyx ( ONYXKEYS . COLLECTION . POLICY ) ;
303-
304302 const hasItemsBeingRemoved = prevDataLength && prevDataLength > data . length ;
305303 const personalDetails = usePersonalDetails ( ) ;
306304
@@ -445,9 +443,7 @@ function SearchList({
445443 onSelectionButtonPress = { onCheckboxPress }
446444 canSelectMultiple = { canSelectMultiple }
447445 item = { itemWithSelection }
448- queryJSONHash = { hash }
449446 columns = { columns }
450- policies = { policies }
451447 policyForMovingExpenses = { policyForMovingExpenses }
452448 isDisabled = { isDisabled }
453449 groupBy = { groupBy }
@@ -485,9 +481,7 @@ function SearchList({
485481 handleLongPressRow ,
486482 onCheckboxPress ,
487483 canSelectMultiple ,
488- hash ,
489484 columns ,
490- policies ,
491485 personalDetails ,
492486 userBillingFundID ,
493487 isOffline ,
You can’t perform that action at this time.
0 commit comments