Skip to content

Commit

Permalink
refactor: remove the navOpen references in useChannelSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinCupela committed Jul 9, 2023
1 parent 0d2f039 commit d5c6eee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ChannelSearch/hooks/useChannelSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export const useChannelSearch = <
searchQueryParams,
setChannels,
}: ChannelSearchControllerParams<StreamChatGenerics>): SearchController<StreamChatGenerics> => {
const { client, navOpen, setActiveChannel, themeVersion } = useChatContext<StreamChatGenerics>(
const { client, setActiveChannel, themeVersion } = useChatContext<StreamChatGenerics>(
'useChannelSearch',
);

Expand Down Expand Up @@ -148,7 +148,7 @@ export const useChannelSearch = <

document.addEventListener('click', clickListener);
return () => document.removeEventListener('click', clickListener);
}, [disabled, inputIsFocused, query, exitSearch, navOpen, clearSearchOnClickOutside]);
}, [disabled, inputIsFocused, query, exitSearch, clearSearchOnClickOutside]);

useEffect(() => {
if (!inputRef.current || disabled) return;
Expand Down

0 comments on commit d5c6eee

Please sign in to comment.