From 3bd45f3b0367edef105d76c1921ed02e9634c0d5 Mon Sep 17 00:00:00 2001 From: Collin Schaafsma Date: Tue, 29 Oct 2024 07:34:56 -0600 Subject: [PATCH] show hide paginator --- app/(app)/account/_components/paginator.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/(app)/account/_components/paginator.tsx b/app/(app)/account/_components/paginator.tsx index 1bace8b..3a1d286 100644 --- a/app/(app)/account/_components/paginator.tsx +++ b/app/(app)/account/_components/paginator.tsx @@ -7,6 +7,7 @@ import { usePaginator } from "./use-paginator" export function Paginator() { const { + showPaginator, previousPageDisabled, nextPageDisabled, handlePrevPage, @@ -16,6 +17,8 @@ export function Paginator() { isPendingNext, } = usePaginator() + if (!showPaginator) return null + return (