Skip to content

Commit

Permalink
chore: remove outdated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
francinelucca committed Jan 14, 2025
1 parent 853c6da commit 3536ee1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/react/src/Pagination/model.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ export function buildPaginationModel(
addPages(1, marginPageCount, true)

if (hasStartEllipsis) {
// To keep the number of pages shown consistent, add the middleWindowCount
// and marginPageCount instead of overlapping them.

// middleWindowCount: 5
// surroundingPageCount: 5
// marginPageCount: 1
// [1, ..., 9, 10, _11_, 12, 13, 14, 15]
// [1, ..., 9, 10, 11, _12_, 13, 14, 15]
Expand All @@ -95,10 +92,7 @@ export function buildPaginationModel(
)

if (hasEndEllipsis) {
// To keep the number of pages shown consistent, add the middleWindowCount
// and marginPageCount instead of overlapping them.

// middleWindowCount: 5
// surroundingPageCount: 2
// marginPageCount: 1
// [1, 2, 3, 4, _5_, 6, 7, ..., 15]
// [1, 2, 3, _4_, 5, 6, 7, ..., 15]
Expand Down

0 comments on commit 3536ee1

Please sign in to comment.