Fix warning about defaultProps

Change-Id: I6caf8c0c7b46a1b8133d1ebe1d29f2b823a2c7c4
This commit is contained in:
Manuel Stahl 2024-08-23 09:51:44 +02:00
parent 3fcb6ca4dd
commit af95ddaca2

View File

@ -58,7 +58,7 @@ const choices_type = [
{ id: "support", name: "support" },
];
const UserListActions = () => {
const UserListActions = ({ selectedIds = [], onUnselectItems = () => null }) => {
const { isLoading, total } = useListContext();
return (
<TopToolbar>
@ -67,11 +67,6 @@ const UserListActions = () => {
);
};
UserListActions.defaultProps = {
selectedIds: [],
onUnselectItems: () => null,
};
const UserPagination = () => <Pagination rowsPerPageOptions={[10, 25, 50, 100, 500, 1000]} />;
const userFilters = [