Skip to content

Commit

Permalink
show hide paginator
Browse files Browse the repository at this point in the history
  • Loading branch information
collinschaafsma committed Oct 29, 2024
1 parent 5f12a53 commit 3bd45f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/(app)/account/_components/paginator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { usePaginator } from "./use-paginator"

export function Paginator() {
const {
showPaginator,
previousPageDisabled,
nextPageDisabled,
handlePrevPage,
Expand All @@ -16,6 +17,8 @@ export function Paginator() {
isPendingNext,
} = usePaginator()

if (!showPaginator) return null

return (
<div className="flex w-full items-center justify-center space-x-2">
<Button
Expand Down

0 comments on commit 3bd45f3

Please sign in to comment.