From 76158a8f98ea77f42c2c4d4562ca4d1330d72b05 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 1 Jun 2024 12:25:49 -0500 Subject: [PATCH] SearchResults: add a spinner when trending posts are loading --- src/features/compose/components/search-results.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/features/compose/components/search-results.tsx b/src/features/compose/components/search-results.tsx index edf3d6f0e..5c9be6cc4 100644 --- a/src/features/compose/components/search-results.tsx +++ b/src/features/compose/components/search-results.tsx @@ -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 = () => { /> ); + } else { + noResultsMessage = ; } }