This commit is contained in:
dklimpel 2020-03-28 21:41:38 +01:00
parent 7eeb60539f
commit ca48495bbf

View File

@ -14,8 +14,20 @@ import {
TextInput,
ReferenceField,
regex,
CreateButton,
ExportButton,
TopToolbar,
} from "react-admin";
const ListActions = () => (
<TopToolbar>
<CreateButton />
<ExportButton
maxResults={"1500"}
/>
</TopToolbar>
);
const UserFilter = props => (
<Filter {...props}>
<BooleanInput source="guests" alwaysOn />
@ -33,6 +45,7 @@ export const UserList = props => (
filters={<UserFilter />}
filterDefaultValues={{ guests: true, deactivated: false }}
bulkActionButtons={false}
actions={<ListActions />}
>
<Datagrid rowClick="edit">
<ReferenceField