The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
disable getCanPreviousPage and getCanNextPage
Steven Tey6882f253db45
diff --git a/packages/ui/src/table/table.tsx b/packages/ui/src/table/table.tsxindex 1ec626488c..2d322f8fa0 100644--- a/packages/ui/src/table/table.tsx+++ b/packages/ui/src/table/table.tsx@@ -4,12 +4,12 @@ import {Column,ColumnDef,ColumnPinningState,- PaginationState,- Table as TableType,- VisibilityState,flexRender,getCoreRowModel,+ PaginationState,+ Table as TableType,useReactTable,+ VisibilityState,} from "@tanstack/react-table";import { AnimatePresence, motion } from "framer-motion";import {@@ -306,14 +306,16 @@ export function Table<T>({text="Previous"className="h-7 px-2"onClick={() => table.previousPage()}- disabled={!table.getCanPreviousPage()}+ // disabled={!table.getCanPreviousPage()}+ disabled={pagination.pageIndex === 1}/><Buttonvariant="secondary"text="Next"className="h-7 px-2"onClick={() => table.nextPage()}- disabled={!table.getCanNextPage()}+ // disabled={!table.getCanNextPage()}+ disabled={pagination.pageIndex === table.getPageCount()}/></div></div>