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 89e17eb..b35d171 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -23,6 +23,7 @@ import { ReferenceField, SelectInput, regex, + Pagination, CreateButton, ExportButton, TopToolbar, @@ -66,6 +67,9 @@ const ListActions = ({ maxResults={maxResults} /> + +const UserPagination = props => ( + ); const UserFilter = props => ( @@ -86,6 +90,7 @@ export const UserList = props => ( filterDefaultValues={{ guests: true, deactivated: false }} bulkActionButtons={false} actions={} + pagination={} > ( - +