sforkowany z mirror/soapbox
Merge branch 'feed-suggestions-hide-empty' into 'develop'
Hide FeedSuggestions if empty See merge request soapbox-pub/soapbox-fe!1647rtk-query
commit
547bb0a9e9
|
@ -60,6 +60,9 @@ const SuggestionItem = ({ accountId }: { accountId: string }) => {
|
|||
const FeedSuggestions = () => {
|
||||
const intl = useIntl();
|
||||
const suggestedProfiles = useAppSelector((state) => state.suggestions.items);
|
||||
const isLoading = useAppSelector((state) => state.suggestions.isLoading);
|
||||
|
||||
if (!isLoading && suggestedProfiles.size === 0) return null;
|
||||
|
||||
return (
|
||||
<Card size='lg' variant='rounded'>
|
||||
|
|
Ładowanie…
Reference in New Issue