Skip to content

Commit

Permalink
Merge branch 'preview'
Browse files Browse the repository at this point in the history
  • Loading branch information
pdelfan committed Mar 29, 2024
2 parents 7d25e7d + ae631aa commit 023477f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions src/components/contentDisplay/feedList/FeedList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import FeedItem from "../feedItem/FeedItem";
import FeedAlert from "@/components/feedback/feedAlert/FeedAlert";
import { getPopularFeeds, getSavedFeeds } from "@/lib/api/bsky/feed";

interface Props {
Expand All @@ -20,6 +21,11 @@ export default async function FeedList(props: Props) {
saved={savedFeeds.some((savedFeed) => savedFeed.uri === feed.uri)}
/>
))}
{popularFeeds.length === 0 && (
<div className="border-skin-base border-t">
<FeedAlert variant="empty" message="No feeds found" />
</div>
)}
</section>
);
}
2 changes: 1 addition & 1 deletion src/containers/search/PostSearchContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export default function PostSearchContainer(props: Props) {

{isFetching && !isFetchingNextPage && <FeedPostSkeleton />}
{isEmpty && !hasNextPage && (
<div className="border-skin-base mx-3 border-t md:mx-0">
<div className="border-skin-base border-t">
<FeedAlert variant="empty" message="No posts found" />
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/containers/search/UserSearchContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default function UserSearchContainer(props: Props) {
</InfiniteScroll>

{isEmpty && (
<div className="border-skin-base mx-3 border-t md:mx-0">
<div className="border-skin-base border-t">
<FeedAlert variant="empty" message="No users found" />
</div>
)}
Expand Down

0 comments on commit 023477f

Please sign in to comment.