fix(feed): no posts message

This commit is contained in:
en 2025-02-04 18:50:16 +01:00
parent d1e85dab96
commit 33c8af6018
2 changed files with 10 additions and 10 deletions

View File

@ -165,16 +165,16 @@ export const FeedTabBlogs = () => {
{isFetching && (
<LoadingSpinner desc='Fetching blog details from relays' />
)}
{filteredBlogs.length === 0 && !isFetching && (
<div className='IBMSMListFeedNoPosts'>
<p>You aren't following people (or there are no posts to show)</p>
</div>
)}
<div className='IBMSMSplitMainFullSideSec IBMSMSMFSSContent'>
<div className='IBMSMList IBMSMListFeed'>
{filteredBlogs.map((blog) => (
<BlogCard key={blog.id} {...blog} />
))}
{filteredBlogs.length === 0 && !isFetching && (
<div className='IBMSMListFeedNoPosts'>
<p>You aren't following people (or there are no posts to show)</p>
</div>
)}
</div>
</div>
{!isFetching && isLoadMoreVisible && filteredBlogs.length > 0 && (

View File

@ -201,16 +201,16 @@ export const FeedTabMods = () => {
return (
<>
{isFetching && <LoadingSpinner desc='Fetching mod details from relays' />}
{filteredModList.length === 0 && !isFetching && (
<div className='IBMSMListFeedNoPosts'>
<p>You aren't following people (or there are no posts to show)</p>
</div>
)}
<div className='IBMSMSplitMainFullSideSec IBMSMSMFSSContent'>
<div className='IBMSMList IBMSMListFeed'>
{filteredModList.map((mod) => (
<ModCard key={mod.id} {...mod} />
))}
{filteredModList.length === 0 && !isFetching && (
<div className='IBMSMListFeedNoPosts'>
<p>You aren't following people (or there are no posts to show)</p>
</div>
)}
</div>
</div>
{!isFetching && isLoadMoreVisible && filteredModList.length > 0 && (