@@ -18,7 +18,6 @@ import TableListItem from '@components/SelectionList/TableListItem';
18
18
import type { ListItem , SelectionListHandle } from '@components/SelectionList/types' ;
19
19
import SelectionListWithModal from '@components/SelectionListWithModal' ;
20
20
import Text from '@components/Text' ;
21
- import useDebouncedState from '@hooks/useDebouncedState' ;
22
21
import useLocalize from '@hooks/useLocalize' ;
23
22
import useMobileSelectionMode from '@hooks/useMobileSelectionMode' ;
24
23
import useNetwork from '@hooks/useNetwork' ;
@@ -67,18 +66,7 @@ function ReportParticipantsPage({report, route}: ReportParticipantsPageProps) {
67
66
const isFocused = useIsFocused ( ) ;
68
67
const { isOffline} = useNetwork ( ) ;
69
68
const canSelectMultiple = isGroupChat && isCurrentUserAdmin && ( isSmallScreenWidth ? selectionMode ?. isEnabled : true ) ;
70
- const [ searchValue , debouncedSearchValue , setSearchValue ] = useDebouncedState ( '' ) ;
71
-
72
- useEffect (
73
- ( ) => ( ) => {
74
- UserSearchPhraseActions . clearUserSearchPhrase ( ) ;
75
- } ,
76
- [ ] ,
77
- ) ;
78
-
79
- useEffect ( ( ) => {
80
- UserSearchPhraseActions . updateUserSearchPhrase ( debouncedSearchValue ) ;
81
- } , [ debouncedSearchValue ] ) ;
69
+ const [ searchValue , setSearchValue ] = useState ( '' ) ;
82
70
83
71
useEffect ( ( ) => {
84
72
if ( isFocused ) {
@@ -424,9 +412,7 @@ function ReportParticipantsPage({report, route}: ReportParticipantsPageProps) {
424
412
shouldShowTextInput = { shouldShowTextInput }
425
413
textInputLabel = { translate ( 'selectionList.findMember' ) }
426
414
textInputValue = { searchValue }
427
- onChangeText = { ( value ) => {
428
- setSearchValue ( value ) ;
429
- } }
415
+ onChangeText = { setSearchValue }
430
416
headerMessage = { headerMessage }
431
417
ListItem = { TableListItem }
432
418
onSelectRow = { openMemberDetails }
0 commit comments