This commit is contained in:
Justin 2022-07-01 16:24:04 -04:00
parent b9d05f546c
commit 41d5769aa0

View file

@ -1,7 +1,6 @@
import debounce from 'lodash/debounce'; import debounce from 'lodash/debounce';
import React, { useEffect } from 'react'; import React, { useEffect } from 'react';
import { FormattedMessage } from 'react-intl'; import { FormattedMessage } from 'react-intl';
import { useHistory } from 'react-router-dom';
import { fetchSuggestions } from 'soapbox/actions/suggestions'; import { fetchSuggestions } from 'soapbox/actions/suggestions';
import ScrollableList from 'soapbox/components/scrollable_list'; import ScrollableList from 'soapbox/components/scrollable_list';
@ -13,7 +12,6 @@ import { useAppDispatch, useAppSelector, useFeatures } from 'soapbox/hooks';
const FollowRecommendations: React.FC = () => { const FollowRecommendations: React.FC = () => {
const dispatch = useAppDispatch(); const dispatch = useAppDispatch();
const features = useFeatures(); const features = useFeatures();
const history = useHistory();
const suggestions = useAppSelector((state) => state.suggestions.items); const suggestions = useAppSelector((state) => state.suggestions.items);
const hasMore = useAppSelector((state) => !!state.suggestions.next); const hasMore = useAppSelector((state) => !!state.suggestions.next);