SearchResults: add a spinner when trending posts are loading

environments/review-mobile-con-qfy82d/deployments/4661
Alex Gleason 2024-06-01 12:25:49 -05:00
rodzic b117529c12
commit fe691ef6f0
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -8,7 +8,7 @@ import { useAccount } from 'soapbox/api/hooks';
import Hashtag from 'soapbox/components/hashtag';
import IconButton from 'soapbox/components/icon-button';
import ScrollableList from 'soapbox/components/scrollable-list';
import { HStack, Tabs, Text } from 'soapbox/components/ui';
import { HStack, Spinner, Tabs, Text } from 'soapbox/components/ui';
import AccountContainer from 'soapbox/containers/account-container';
import StatusContainer from 'soapbox/containers/status-container';
import PlaceholderAccount from 'soapbox/features/placeholder/components/placeholder-account';
@ -172,6 +172,8 @@ const SearchResults = () => {
/>
</div>
);
} else {
noResultsMessage = <Spinner />;
}
}