Fixed pagination that cant be changed on table

This commit is contained in:
Lucas Oliveira 2024-04-30 01:02:12 +02:00
commit de5116a6bf

View file

@ -9,7 +9,7 @@ import { cn } from "../../utils/utils";
const TableComponent = forwardRef<
ElementRef<typeof AgGridReact>,
ComponentPropsWithoutRef<typeof AgGridReact>
>(({ ...props }, ref) => {
>(({ pagination = true, ...props }, ref) => {
const dark = useDarkStore((state) => state.dark);
return (
@ -20,7 +20,7 @@ const TableComponent = forwardRef<
"ag-theme-shadcn flex h-full flex-col pb-8"
)} // applying the grid theme
>
<AgGridReact ref={ref} pagination={true} {...props} />
<AgGridReact ref={ref} {...props} />
</div>
</div>
);