feat: display posts of those a user follows on following page

This commit is contained in:
Stevan Freeborn
2023-09-15 21:56:41 -05:00
parent 29d280ea3f
commit 7e3a6170e3
6 changed files with 151 additions and 2 deletions
+10
View File
@@ -17,6 +17,16 @@ export default function AllPosts() {
pager.loadMore(PAGE_SIZE);
}
if (pager.isLoading === false && pager.results.length == 0) {
return (
<div className='flex flex-col justify-center items-center gap-2'>
<h2 className='text-2xl'>
Hmmm it doesn&apos;t look like anyone has posted.
</h2>
</div>
);
}
return (
<div className='flex flex-col items-center w-full'>
<div className='flex flex-col items-center w-full'>