From af95ddaca2a43ffe669940041fcfd0e23dff2be7 Mon Sep 17 00:00:00 2001 From: Manuel Stahl Date: Fri, 23 Aug 2024 09:51:44 +0200 Subject: [PATCH] Fix warning about defaultProps Change-Id: I6caf8c0c7b46a1b8133d1ebe1d29f2b823a2c7c4 --- src/resources/users.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/resources/users.tsx b/src/resources/users.tsx index 989c115..835d57d 100644 --- a/src/resources/users.tsx +++ b/src/resources/users.tsx @@ -58,7 +58,7 @@ const choices_type = [ { id: "support", name: "support" }, ]; -const UserListActions = () => { +const UserListActions = ({ selectedIds = [], onUnselectItems = () => null }) => { const { isLoading, total } = useListContext(); return ( @@ -67,11 +67,6 @@ const UserListActions = () => { ); }; -UserListActions.defaultProps = { - selectedIds: [], - onUnselectItems: () => null, -}; - const UserPagination = () => ; const userFilters = [