Client: 20 item pagination
This commit is contained in:
@@ -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 (
|
||||||
|
|||||||
@@ -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) => {
|
||||||
|
|||||||
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> = () => {
|
export const VendorList: React.FC<IResourceComponentsProps> = () => {
|
||||||
const { tableProps } = useTable({
|
const { tableProps } = useTable({
|
||||||
syncWithLocation: true,
|
syncWithLocation: true,
|
||||||
|
pagination: {
|
||||||
|
mode: "client",
|
||||||
|
pageSize: 20,
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user