diff --git a/src/pages/ReportParticipantsPage.tsx b/src/pages/ReportParticipantsPage.tsx index 8029067f5026..405e1dd688f2 100755 --- a/src/pages/ReportParticipantsPage.tsx +++ b/src/pages/ReportParticipantsPage.tsx @@ -18,7 +18,6 @@ import TableListItem from '@components/SelectionList/TableListItem'; import type {ListItem, SelectionListHandle} from '@components/SelectionList/types'; import SelectionListWithModal from '@components/SelectionListWithModal'; import Text from '@components/Text'; -import useDebouncedState from '@hooks/useDebouncedState'; import useLocalize from '@hooks/useLocalize'; import useMobileSelectionMode from '@hooks/useMobileSelectionMode'; import useNetwork from '@hooks/useNetwork'; @@ -67,18 +66,7 @@ function ReportParticipantsPage({report, route}: ReportParticipantsPageProps) { const isFocused = useIsFocused(); const {isOffline} = useNetwork(); const canSelectMultiple = isGroupChat && isCurrentUserAdmin && (isSmallScreenWidth ? selectionMode?.isEnabled : true); - const [searchValue, debouncedSearchValue, setSearchValue] = useDebouncedState(''); - - useEffect( - () => () => { - UserSearchPhraseActions.clearUserSearchPhrase(); - }, - [], - ); - - useEffect(() => { - UserSearchPhraseActions.updateUserSearchPhrase(debouncedSearchValue); - }, [debouncedSearchValue]); + const [searchValue, setSearchValue] = useState(''); useEffect(() => { if (isFocused) { @@ -424,9 +412,7 @@ function ReportParticipantsPage({report, route}: ReportParticipantsPageProps) { shouldShowTextInput={shouldShowTextInput} textInputLabel={translate('selectionList.findMember')} textInputValue={searchValue} - onChangeText={(value) => { - setSearchValue(value); - }} + onChangeText={setSearchValue} headerMessage={headerMessage} ListItem={TableListItem} onSelectRow={openMemberDetails}