1
0
Fork 0
mirror of https://github.com/etkecc/synapse-admin.git synced 2025-05-01 16:51:08 +03:00

Add more size options to pagination ()

This commit is contained in:
dklimpel 2020-03-27 21:02:37 +01:00 committed by Manuel Stahl
parent 965645874c
commit 445c7fc327
2 changed files with 12 additions and 2 deletions
src/components

View file

@ -23,8 +23,13 @@ import {
ReferenceField,
SelectInput,
regex,
Pagination,
} from "react-admin";
const UserPagination = props => (
<Pagination {...props} rowsPerPageOptions={[10, 25, 50, 100, 500, 1000]} />
);
const UserFilter = props => (
<Filter {...props}>
<BooleanInput source="guests" alwaysOn />
@ -42,6 +47,7 @@ export const UserList = props => (
filters={<UserFilter />}
filterDefaultValues={{ guests: true, deactivated: false }}
bulkActionButtons={false}
pagination={<UserPagination />}
>
<Datagrid rowClick="edit">
<ReferenceField