Feed, initial functionality #218

Merged
enes merged 6 commits from feat/131-feed into staging 2025-02-04 17:51:58 +00:00
2 changed files with 10 additions and 10 deletions
Showing only changes of commit 33c8af6018 - Show all commits

View File

@ -165,16 +165,16 @@ export const FeedTabBlogs = () => {
{isFetching && ( {isFetching && (
<LoadingSpinner desc='Fetching blog details from relays' /> <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='IBMSMSplitMainFullSideSec IBMSMSMFSSContent'>
<div className='IBMSMList IBMSMListFeed'> <div className='IBMSMList IBMSMListFeed'>
{filteredBlogs.map((blog) => ( {filteredBlogs.map((blog) => (
<BlogCard key={blog.id} {...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>
</div> </div>
{!isFetching && isLoadMoreVisible && filteredBlogs.length > 0 && ( {!isFetching && isLoadMoreVisible && filteredBlogs.length > 0 && (

View File

@ -201,16 +201,16 @@ export const FeedTabMods = () => {
return ( return (
<> <>
{isFetching && <LoadingSpinner desc='Fetching mod details from relays' />} {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='IBMSMSplitMainFullSideSec IBMSMSMFSSContent'>
<div className='IBMSMList IBMSMListFeed'> <div className='IBMSMList IBMSMListFeed'>
{filteredModList.map((mod) => ( {filteredModList.map((mod) => (
<ModCard key={mod.id} {...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>
</div> </div>
{!isFetching && isLoadMoreVisible && filteredModList.length > 0 && ( {!isFetching && isLoadMoreVisible && filteredModList.length > 0 && (