From accd3692c553b6a0332f2cb0bad1f239f782a019 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 customizing size of pagination
---
src/components/rooms.js | 13 +++++++++++--
src/components/users.js | 8 ++++++++
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/src/components/rooms.js b/src/components/rooms.js
index ba3bd8b..e12e91f 100644
--- a/src/components/rooms.js
+++ b/src/components/rooms.js
@@ -1,8 +1,17 @@
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 068b59e..c56dcfb 100644
--- a/src/components/users.js
+++ b/src/components/users.js
@@ -14,8 +14,15 @@ import {
TextInput,
ReferenceField,
regex,
+ Pagination
} from "react-admin";
+const UserPagination = props => (
+ );
+
const UserFilter = props => (
@@ -33,6 +40,7 @@ export const UserList = props => (
filters={}
filterDefaultValues={{ guests: true, deactivated: false }}
bulkActionButtons={false}
+ pagination={}
>