diff --git a/frontend/src/components/admin/UserList.tsx b/frontend/src/components/admin/UserList.tsx index aca982b9..3db9039f 100644 --- a/frontend/src/components/admin/UserList.tsx +++ b/frontend/src/components/admin/UserList.tsx @@ -445,6 +445,7 @@ const UserList = ({ isASP, rowsPerPage = 10 }: UserListProps) => { } reloadMealRequests(); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [isASP, rowsPerPage, currentPage, reload]); if (redirectTo) { diff --git a/frontend/src/components/mealrequest/AdminListView.tsx b/frontend/src/components/mealrequest/AdminListView.tsx index dd99a642..db521152 100644 --- a/frontend/src/components/mealrequest/AdminListView.tsx +++ b/frontend/src/components/mealrequest/AdminListView.tsx @@ -594,13 +594,9 @@ const AdminListView = ({ rowsPerPage = 10, donorId, aspId }: AdminListViewProps) } } reloadMealRequests(); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [filter, sort, currentPage, authenticatedUser]); - const handleDelete = (item: TABLE_LIBRARY_TYPES.TableNode) => () => { - // eslint-disable-next-line no-console - console.log("delete clicked for item", item.id); - }; - const COLUMNS = [ { label: "Date Requested", @@ -657,29 +653,15 @@ const AdminListView = ({ rowsPerPage = 10, donorId, aspId }: AdminListViewProps) }, { label: "", - renderCell: (item: TABLE_LIBRARY_TYPES.TableNode) => { - if (!item.pending) { - return ( - - {ids.includes(item.id) ? : } - - ); - } - - return ( - - - - ); - }, + renderCell: (item: TABLE_LIBRARY_TYPES.TableNode) => ( + + {ids.includes(item.id) ? : } + + ), }, ];