From 33c8af6018880c04c7c79fe1455ba3c00f926da0 Mon Sep 17 00:00:00 2001 From: en Date: Tue, 4 Feb 2025 18:50:16 +0100 Subject: [PATCH] fix(feed): no posts message --- src/pages/feed/FeedTabBlogs.tsx | 10 +++++----- src/pages/feed/FeedTabMods.tsx | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/pages/feed/FeedTabBlogs.tsx b/src/pages/feed/FeedTabBlogs.tsx index 08b96db..d7f762e 100644 --- a/src/pages/feed/FeedTabBlogs.tsx +++ b/src/pages/feed/FeedTabBlogs.tsx @@ -165,16 +165,16 @@ export const FeedTabBlogs = () => { {isFetching && ( )} + {filteredBlogs.length === 0 && !isFetching && ( +
+

You aren't following people (or there are no posts to show)

+
+ )}
{filteredBlogs.map((blog) => ( ))} - {filteredBlogs.length === 0 && !isFetching && ( -
-

You aren't following people (or there are no posts to show)

-
- )}
{!isFetching && isLoadMoreVisible && filteredBlogs.length > 0 && ( diff --git a/src/pages/feed/FeedTabMods.tsx b/src/pages/feed/FeedTabMods.tsx index 28a7e65..c4f6932 100644 --- a/src/pages/feed/FeedTabMods.tsx +++ b/src/pages/feed/FeedTabMods.tsx @@ -201,16 +201,16 @@ export const FeedTabMods = () => { return ( <> {isFetching && } + {filteredModList.length === 0 && !isFetching && ( +
+

You aren't following people (or there are no posts to show)

+
+ )}
{filteredModList.map((mod) => ( ))} - {filteredModList.length === 0 && !isFetching && ( -
-

You aren't following people (or there are no posts to show)

-
- )}
{!isFetching && isLoadMoreVisible && filteredModList.length > 0 && (