kopia lustrzana https://gitlab.com/soapbox-pub/soapbox
Don't display WhoToFollow panel if empty
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>environments/review-develop-3zknud/deployments/1044^2
rodzic
972881be85
commit
2239221856
|
@ -29,6 +29,10 @@ const WhoToFollowPanel = ({ limit }: IWhoToFollowPanel) => {
|
||||||
dismissSuggestion.mutate(account.id);
|
dismissSuggestion.mutate(account.id);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (!isFetching && !suggestions.length) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Widget
|
<Widget
|
||||||
title={<FormattedMessage id='who_to_follow.title' defaultMessage='People To Follow' />}
|
title={<FormattedMessage id='who_to_follow.title' defaultMessage='People To Follow' />}
|
||||||
|
|
Ładowanie…
Reference in New Issue