From 005abfb4a23ec0cd76c7c3ef095e21d8cb365ebf Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:02:06 +0100 Subject: [PATCH] Update pagination https: //marmelab.com/react-admin/Upgrade.html#no-more-props-injection-in-custom-pagination-and-empty-components Change-Id: I6f4d3941dee22cf00da30bada5442f3fdd345127 --- src/components/EventReports.js | 4 ++-- src/components/RoomDirectory.js | 4 ++-- src/components/destinations.js | 4 ++-- src/components/rooms.js | 4 ++-- src/components/statistics.js | 4 ++-- src/components/users.js | 4 ++-- 6 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/components/EventReports.js b/src/components/EventReports.js index 1ae063d..ffece71 100644 --- a/src/components/EventReports.js +++ b/src/components/EventReports.js @@ -25,8 +25,8 @@ const date_format = { second: "2-digit", }; -const ReportPagination = props => ( - +const ReportPagination = () => ( + ); export const ReportShow = props => { diff --git a/src/components/RoomDirectory.js b/src/components/RoomDirectory.js index 6981889..345dac8 100644 --- a/src/components/RoomDirectory.js +++ b/src/components/RoomDirectory.js @@ -24,8 +24,8 @@ import { useMutation } from "react-query"; import RoomDirectoryIcon from "@mui/icons-material/FolderShared"; import AvatarField from "./AvatarField"; -const RoomDirectoryPagination = props => ( - +const RoomDirectoryPagination = () => ( + ); export const RoomDirectoryDeleteButton = props => { diff --git a/src/components/destinations.js b/src/components/destinations.js index 7f6ee02..3fc7f78 100644 --- a/src/components/destinations.js +++ b/src/components/destinations.js @@ -24,8 +24,8 @@ import DestinationsIcon from "@mui/icons-material/CloudQueue"; import FolderSharedIcon from "@mui/icons-material/FolderShared"; import ViewListIcon from "@mui/icons-material/ViewList"; -const DestinationPagination = props => ( - +const DestinationPagination = () => ( + ); const date_format = { diff --git a/src/components/rooms.js b/src/components/rooms.js index 8cfa793..514581f 100644 --- a/src/components/rooms.js +++ b/src/components/rooms.js @@ -51,8 +51,8 @@ const date_format = { second: "2-digit", }; -const RoomPagination = props => ( - +const RoomPagination = () => ( + ); const RoomTitle = () => { diff --git a/src/components/statistics.js b/src/components/statistics.js index a4090ef..d3ca6c8 100644 --- a/src/components/statistics.js +++ b/src/components/statistics.js @@ -41,8 +41,8 @@ const ListActions = props => { ); }; -const UserMediaStatsPagination = props => ( - +const UserMediaStatsPagination = () => ( + ); const userMediaStatsFilters = []; diff --git a/src/components/users.js b/src/components/users.js index 3b58465..ac18915 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -121,8 +121,8 @@ UserListActions.defaultProps = { onUnselectItems: () => null, }; -const UserPagination = props => ( - +const UserPagination = () => ( + ); const userFilters = [