mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-11 09:51:47 +00:00
Fix chapter num in pagination component (#1135)
Co-authored-by: Roman Krasikov <romankrru@yandex-team.ru>
This commit is contained in:
@@ -6,13 +6,13 @@ import Link from 'next/link';
|
||||
import { generatePagination } from '@/app/lib/utils';
|
||||
|
||||
export default function Pagination({ totalPages }: { totalPages: number }) {
|
||||
// NOTE: Uncomment this code in Chapter 11
|
||||
// NOTE: Uncomment this code in Chapter 10
|
||||
|
||||
// const allPages = generatePagination(currentPage, totalPages);
|
||||
|
||||
return (
|
||||
<>
|
||||
{/* NOTE: Uncomment this code in Chapter 11 */}
|
||||
{/* NOTE: Uncomment this code in Chapter 10 */}
|
||||
|
||||
{/* <div className="inline-flex">
|
||||
<PaginationArrow
|
||||
|
||||
Reference in New Issue
Block a user