SearchResults: add a spinner when trending posts are loading
This commit is contained in:
parent
d6cc7f19f1
commit
76158a8f98
1 changed files with 3 additions and 1 deletions
|
@ -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 />;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue