sforkowany z mirror/soapbox
Hide FeedSuggestions if empty
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>rtk-query
rodzic
827146ad17
commit
b92cdabd62
|
@ -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