Skip to content

Commit

Permalink
fix: Paging spacer logic (#3275)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Jan 12, 2024
1 parent f506420 commit 00ac34e
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions frontend/web/components/Paging.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,22 +100,24 @@ export default class Paging extends PureComponent {
{index + 1}
</div>
))}
{!noPages && !range.includes(lastPage - 2) && (
<>
<div
className={cn({
page: true,
})}
onClick={
paging.currentPage === lastPage + 1
? undefined
: () => goToPage(1)
}
>
...
</div>
</>
)}
{!noPages &&
!range.includes(lastPage - 1) &&
!range.includes(lastPage - 2) && (
<>
<div
className={cn({
page: true,
})}
onClick={
paging.currentPage === lastPage + 1
? undefined
: () => goToPage(1)
}
>
...
</div>
</>
)}
{!noPages && !range.includes(lastPage - 1) && (
<>
<div
Expand Down

3 comments on commit 00ac34e

@vercel
Copy link

@vercel vercel bot commented on 00ac34e Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 00ac34e Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 00ac34e Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

docs – ./docs

docs.bullet-train.io
docs.flagsmith.com
docs-flagsmith.vercel.app
docs-git-main-flagsmith.vercel.app

Please sign in to comment.