No unnessecary pagination
This commit is contained in:
parent
2f0b7da130
commit
2512dd0732
4 changed files with 12 additions and 12 deletions
|
@ -106,9 +106,9 @@ export default async function Home({
|
||||||
<ConditionalNull condition={curPage < curDate}>
|
<ConditionalNull condition={curPage < curDate}>
|
||||||
<Link href={`?`}>Later</Link>
|
<Link href={`?`}>Later</Link>
|
||||||
</ConditionalNull>
|
</ConditionalNull>
|
||||||
{/* <ConditionalNull condition={curPage * 10 < blogs.data.total_posts}> */}
|
<ConditionalNull condition={users.length > 20}>
|
||||||
<Link href={`?until=${users.at(-1)?.joined}`}>Earlier</Link>
|
<Link href={`?until=${parseInt(users.at(-1)?.joined || curPage + "") - 1}`}>Earlier</Link>
|
||||||
{/* </ConditionalNull> */}
|
</ConditionalNull>
|
||||||
</div>
|
</div>
|
||||||
<h2>Apps</h2>
|
<h2>Apps</h2>
|
||||||
<p>apps stored in the database</p>
|
<p>apps stored in the database</p>
|
||||||
|
|
|
@ -129,9 +129,9 @@ export default async function Home({
|
||||||
<ConditionalNull condition={curPage < curDate}>
|
<ConditionalNull condition={curPage < curDate}>
|
||||||
<Link href={`?`}>Later</Link>
|
<Link href={`?`}>Later</Link>
|
||||||
</ConditionalNull>
|
</ConditionalNull>
|
||||||
{/* <ConditionalNull condition={curPage * 10 < blogs.data.total_posts}> */}
|
<ConditionalNull condition={judgements.length > 20}>
|
||||||
<Link href={`?until=${judgements.at(-1)?.published}`}>Earlier</Link>
|
<Link href={`?until=${parseInt(judgements.at(-1)?.published || curPage + "") - 1}`}>Earlier</Link>
|
||||||
{/* </ConditionalNull> */}
|
</ConditionalNull>
|
||||||
</div>
|
</div>
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|
|
@ -120,9 +120,9 @@ export default async function Home({
|
||||||
<ConditionalNull condition={curPage < curDate}>
|
<ConditionalNull condition={curPage < curDate}>
|
||||||
<Link href={`?`}>Later</Link>
|
<Link href={`?`}>Later</Link>
|
||||||
</ConditionalNull>
|
</ConditionalNull>
|
||||||
{/* <ConditionalNull condition={curPage * 10 < blogs.data.total_posts}> */}
|
<ConditionalNull condition={content.length > 20}>
|
||||||
<Link href={`?until=${content.at(-1)?.submitted}`}>Earlier</Link>
|
<Link href={`?until=${parseInt(content.at(-1)?.submitted || curPage + "") - 1}`}>Earlier</Link>
|
||||||
{/* </ConditionalNull> */}
|
</ConditionalNull>
|
||||||
</div>
|
</div>
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|
|
@ -89,9 +89,9 @@ export default async function Home({
|
||||||
<ConditionalNull condition={curPage < curDate}>
|
<ConditionalNull condition={curPage < curDate}>
|
||||||
<Link href={`?`}>Later</Link>
|
<Link href={`?`}>Later</Link>
|
||||||
</ConditionalNull>
|
</ConditionalNull>
|
||||||
{/* <ConditionalNull condition={curPage * 10 < blogs.data.total_posts}> */}
|
<ConditionalNull condition={jams.length > 20}>
|
||||||
<Link href={`?until=${jams.at(-1)?.created}`}>Earlier</Link>
|
<Link href={`?until=${parseInt(jams.at(-1)?.created || curPage + "") - 1}`}>Earlier</Link>
|
||||||
{/* </ConditionalNull> */}
|
</ConditionalNull>
|
||||||
</div>
|
</div>
|
||||||
</MainLayout>
|
</MainLayout>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue