SearchResults: add a spinner when trending posts are loading

This commit is contained in:
Alex Gleason 2024-06-01 12:25:49 -05:00 committed by marcin mikołajczak
parent d6cc7f19f1
commit 76158a8f98

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';
@ -170,6 +170,8 @@ const SearchResults = () => {
/>
</div>
);
} else {
noResultsMessage = <Spinner />;
}
}