From 445c7fc3273b86df024ebfaac9ce97d9f3fd564a Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Fri, 27 Mar 2020 21:02:37 +0100 Subject: [PATCH] Add more size options to pagination (#23) --- src/components/rooms.js | 8 ++++++-- src/components/users.js | 6 ++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/rooms.js b/src/components/rooms.js index ba3bd8b..8cac414 100644 --- a/src/components/rooms.js +++ b/src/components/rooms.js @@ -1,8 +1,12 @@ import React from "react"; -import { Datagrid, List, TextField } from "react-admin"; +import { Datagrid, List, TextField, Pagination } from "react-admin"; + +const RoomPagination = props => ( + +); export const RoomList = props => ( - + }> diff --git a/src/components/users.js b/src/components/users.js index 4392dee..b690377 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -23,8 +23,13 @@ import { ReferenceField, SelectInput, regex, + Pagination, } from "react-admin"; +const UserPagination = props => ( + +); + const UserFilter = props => ( @@ -42,6 +47,7 @@ export const UserList = props => ( filters={} filterDefaultValues={{ guests: true, deactivated: false }} bulkActionButtons={false} + pagination={} >