@@ -7,9 +7,9 @@ import HeaderWithBackButton from '@components/HeaderWithBackButton';
77import * as Expensicons from '@components/Icon/Expensicons' ;
88import PressableWithDelayToggle from '@components/Pressable/PressableWithDelayToggle' ;
99import ScreenWrapper from '@components/ScreenWrapper' ;
10- import SelectionList from '@components/SelectionListWithSections ' ;
11- import type { ListItem } from '@components/SelectionListWithSections/types ' ;
12- import UserListItem from '@components/SelectionListWithSections/UserListItem ' ;
10+ import SelectionList from '@components/SelectionList ' ;
11+ import UserListItem from '@components/SelectionList/ListItem/UserListItem ' ;
12+ import type { ListItem } from '@components/SelectionList/types ' ;
1313import TabSelector from '@components/TabSelector/TabSelector' ;
1414import useDebouncedState from '@hooks/useDebouncedState' ;
1515import { useMemoizedLazyIllustrations } from '@hooks/useLazyAsset' ;
@@ -317,20 +317,21 @@ function EditInviteReceiptPartnerPolicyPage({route}: EditInviteReceiptPartnerPol
317317 return (
318318 < TabScreenWithFocusTrapWrapper >
319319 < SelectionList
320+ data = { filteredMembers }
320321 ListItem = { UserListItem }
321322 onSelectRow = { ( ) => { } }
322323 onDismissError = { dismissError }
323- listItemWrapperStyle = { styles . cursorDefault }
324+ style = { { listItemWrapperStyle : styles . cursorDefault } }
324325 addBottomSafeAreaPadding
325326 shouldShowTextInput = { shouldShowTextInput }
326- textInputLabel = { shouldShowTextInput ? translate ( 'common.search' ) : undefined }
327- textInputValue = { searchTerm }
328- onChangeText = { setSearchTerm }
329- headerMessage = { currentHeaderMessage }
330- sections = { buildSections ( filteredMembers ) }
327+ textInputOptions = { {
328+ label : shouldShowTextInput ? translate ( 'common.search' ) : undefined ,
329+ value : searchTerm ,
330+ onChangeText : setSearchTerm ,
331+ headerMessage : currentHeaderMessage ,
332+ } }
331333 listEmptyContent = { listEmptyContent }
332- shouldShowListEmptyContent = { shouldShowListEmptyContent }
333- sectionListStyle = { styles . pt3 }
334+ showListEmptyContent = { shouldShowListEmptyContent }
334335 />
335336 </ TabScreenWithFocusTrapWrapper >
336337 ) ;
0 commit comments