diff --git a/src/components/users.js b/src/components/users.js index c7deda7..d27cde5 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -25,6 +25,7 @@ import { TextInput, ReferenceField, ReferenceManyField, + SearchInput, SelectInput, BulkDeleteButton, DeleteButton, @@ -98,6 +99,7 @@ const UserPagination = props => ( const UserFilter = props => ( + { console.log("getList " + resource); - const { user_id, guests, deactivated } = params.filter; + const { user_id, name, guests, deactivated } = params.filter; const { page, perPage } = params.pagination; const { field, order } = params.sort; const from = (page - 1) * perPage; @@ -145,6 +145,7 @@ const dataProvider = { from: from, limit: perPage, user_id: user_id, + name: name, guests: guests, deactivated: deactivated, order_by: field,