SearchResults: add a spinner when trending posts are loading

This commit is contained in:
Alex Gleason 2024-06-01 12:25:49 -05:00
parent b117529c12
commit fe691ef6f0
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 3 additions and 1 deletions

View File

@ -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 />;
}
}