Client: 20 item pagination
This commit is contained in:
@@ -18,6 +18,10 @@ dayjs.extend(utc);
|
||||
export const FilamentList: React.FC<IResourceComponentsProps> = () => {
|
||||
const { tableProps } = useTable({
|
||||
syncWithLocation: true,
|
||||
pagination: {
|
||||
mode: "client",
|
||||
pageSize: 20,
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
@@ -19,6 +19,10 @@ dayjs.extend(utc);
|
||||
export const SpoolList: React.FC<IResourceComponentsProps> = () => {
|
||||
const { tableProps } = useTable({
|
||||
syncWithLocation: true,
|
||||
pagination: {
|
||||
mode: "client",
|
||||
pageSize: 20,
|
||||
},
|
||||
});
|
||||
|
||||
tableProps.dataSource?.forEach((element) => {
|
||||
|
||||
4
client/src/pages/vendors/list.tsx
vendored
4
client/src/pages/vendors/list.tsx
vendored
@@ -17,6 +17,10 @@ dayjs.extend(utc);
|
||||
export const VendorList: React.FC<IResourceComponentsProps> = () => {
|
||||
const { tableProps } = useTable({
|
||||
syncWithLocation: true,
|
||||
pagination: {
|
||||
mode: "client",
|
||||
pageSize: 20,
|
||||
},
|
||||
});
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user