Search reducer: convert to TypeScript

This commit is contained in:
Alex Gleason 2022-05-14 13:18:31 -05:00
parent 5bbfb0cc39
commit 88404f32b6
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 4 additions and 4 deletions

View file

@ -46,13 +46,13 @@ const SearchResults: React.FC<ISearchResults> = () => {
const intl = useIntl();
const dispatch = useAppDispatch();
const value = useAppSelector(state => state.search.get('submittedValue'));
const results = useAppSelector(state => state.search.get('results'));
const value = useAppSelector(state => state.search.submittedValue);
const results = useAppSelector(state => state.search.results);
const suggestions = useAppSelector(state => state.suggestions.items);
const trendingStatuses = useAppSelector(state => state.trending_statuses.items);
const trends = useAppSelector(state => state.trends.items);
const submitted = useAppSelector(state => state.search.get('submitted'));
const selectedFilter = useAppSelector(state => state.search.get('filter'));
const submitted = useAppSelector(state => state.search.submitted);
const selectedFilter = useAppSelector(state => state.search.filter);
const handleLoadMore = () => dispatch(expandSearch(selectedFilter));
const handleSelectFilter = (newActiveFilter: SearchFilter) => dispatch(setFilter(newActiveFilter));