Fixed pagination that cant be changed on table
This commit is contained in:
parent
ad52526642
commit
de5116a6bf
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ import { cn } from "../../utils/utils";
|
||||||
const TableComponent = forwardRef<
|
const TableComponent = forwardRef<
|
||||||
ElementRef<typeof AgGridReact>,
|
ElementRef<typeof AgGridReact>,
|
||||||
ComponentPropsWithoutRef<typeof AgGridReact>
|
ComponentPropsWithoutRef<typeof AgGridReact>
|
||||||
>(({ ...props }, ref) => {
|
>(({ pagination = true, ...props }, ref) => {
|
||||||
const dark = useDarkStore((state) => state.dark);
|
const dark = useDarkStore((state) => state.dark);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
@ -20,7 +20,7 @@ const TableComponent = forwardRef<
|
||||||
"ag-theme-shadcn flex h-full flex-col pb-8"
|
"ag-theme-shadcn flex h-full flex-col pb-8"
|
||||||
)} // applying the grid theme
|
)} // applying the grid theme
|
||||||
>
|
>
|
||||||
<AgGridReact ref={ref} pagination={true} {...props} />
|
<AgGridReact ref={ref} {...props} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue