fix: show pagination controls for all users unconditionally
This commit is contained in:
parent
b397d7540d
commit
209a0eff25
@ -242,7 +242,6 @@ export default async function Home(props: { searchParams: Promise<{ [key: string
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Pagination Controls */}
|
{/* Pagination Controls */}
|
||||||
{totalPages > 1 && (
|
|
||||||
<div className="flex justify-center items-center gap-4 mt-12">
|
<div className="flex justify-center items-center gap-4 mt-12">
|
||||||
{page > 1 ? (
|
{page > 1 ? (
|
||||||
<a href={`/?page=${page - 1}${adminMonth ? `&month=${adminMonth}` : ''}#noticias`} className="px-6 py-3 rounded-xl bg-slate-800/80 text-white font-bold hover:bg-slate-700 transition-colors border border-white/10">
|
<a href={`/?page=${page - 1}${adminMonth ? `&month=${adminMonth}` : ''}#noticias`} className="px-6 py-3 rounded-xl bg-slate-800/80 text-white font-bold hover:bg-slate-700 transition-colors border border-white/10">
|
||||||
@ -264,7 +263,6 @@ export default async function Home(props: { searchParams: Promise<{ [key: string
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{hasSidebar && (
|
{hasSidebar && (
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user