Client: 20 item pagination

This commit is contained in:
Donkie
2023-07-06 14:54:48 +02:00
parent fe85caa44b
commit 97170719b2
3 changed files with 12 additions and 0 deletions

View File

@@ -18,6 +18,10 @@ dayjs.extend(utc);
export const FilamentList: React.FC<IResourceComponentsProps> = () => { export const FilamentList: React.FC<IResourceComponentsProps> = () => {
const { tableProps } = useTable({ const { tableProps } = useTable({
syncWithLocation: true, syncWithLocation: true,
pagination: {
mode: "client",
pageSize: 20,
},
}); });
return ( return (

View File

@@ -19,6 +19,10 @@ dayjs.extend(utc);
export const SpoolList: React.FC<IResourceComponentsProps> = () => { export const SpoolList: React.FC<IResourceComponentsProps> = () => {
const { tableProps } = useTable({ const { tableProps } = useTable({
syncWithLocation: true, syncWithLocation: true,
pagination: {
mode: "client",
pageSize: 20,
},
}); });
tableProps.dataSource?.forEach((element) => { tableProps.dataSource?.forEach((element) => {

View File

@@ -17,6 +17,10 @@ dayjs.extend(utc);
export const VendorList: React.FC<IResourceComponentsProps> = () => { export const VendorList: React.FC<IResourceComponentsProps> = () => {
const { tableProps } = useTable({ const { tableProps } = useTable({
syncWithLocation: true, syncWithLocation: true,
pagination: {
mode: "client",
pageSize: 20,
},
}); });
return ( return (