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