fix: show pagination controls for all users unconditionally

This commit is contained in:
Carlos (Almeira) 2026-07-02 08:44:33 -05:00
parent b397d7540d
commit 209a0eff25

View File

@ -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 && (