From 155e73b9c6782a8522055c038312201c689a1e71 Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Mon, 5 Feb 2024 21:57:14 +0100 Subject: [PATCH] Rename currentSort to sort https: //marmelab.com/react-admin/Upgrade.html#currentsort-renamed-to-sort Change-Id: I676adefe0073a9a0343dcd598e9559ecf30c38af --- src/components/statistics.js | 12 +++--------- src/components/users.js | 4 ++-- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/components/statistics.js b/src/components/statistics.js index 90fd2fa..a4090ef 100644 --- a/src/components/statistics.js +++ b/src/components/statistics.js @@ -17,14 +17,8 @@ import { DeleteMediaButton } from "./media"; const ListActions = props => { const { className, exporter, filters, maxResults, ...rest } = props; - const { - currentSort, - resource, - displayedFilters, - filterValues, - showFilter, - total, - } = useListContext(); + const { sort, resource, displayedFilters, filterValues, showFilter, total } = + useListContext(); return ( {filters && @@ -39,7 +33,7 @@ const ListActions = props => { diff --git a/src/components/users.js b/src/components/users.js index dcd3b87..3b58465 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -73,7 +73,7 @@ const date_format = { }; const UserListActions = ({ - currentSort, + sort, className, resource, filters, @@ -103,7 +103,7 @@ const UserListActions = ({