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 = ({