From 68e5a72618c70632d490da9a3f3ac34cabb69fdb Mon Sep 17 00:00:00 2001
From: dklimpel <5740567+dklimpel@users.noreply.github.com>
Date: Sat, 28 Mar 2020 22:31:59 +0100
Subject: [PATCH] Increase export of users up to 5000
---
src/components/users.js | 45 ++++++++++++++++++++++++++++++++++++++++-
1 file changed, 44 insertions(+), 1 deletion(-)
diff --git a/src/components/users.js b/src/components/users.js
index 068b59e..b368c9b 100644
--- a/src/components/users.js
+++ b/src/components/users.js
@@ -1,4 +1,4 @@
-import React from "react";
+import React, { cloneElement } from "react";
import {
Datagrid,
Create,
@@ -14,8 +14,50 @@ import {
TextInput,
ReferenceField,
regex,
+ CreateButton,
+ ExportButton,
+ TopToolbar,
+ sanitizeListRestProps,
} from "react-admin";
+const ListActions = ({
+ currentSort,
+ className,
+ resource,
+ filters,
+ displayedFilters,
+ exporter, // you can hide ExportButton if exporter = (null || false)
+ filterValues,
+ permanentFilter,
+ hasCreate, // you can hide CreateButton if hasCreate = false
+ basePath,
+ selectedIds,
+ onUnselectItems,
+ showFilter,
+ maxResults,
+ total,
+ ...rest
+}) => (
+
+ {filters && cloneElement(filters, {
+ resource,
+ showFilter,
+ displayedFilters,
+ filterValues,
+ context: 'button',
+ })}
+
+
+
+);
+
const UserFilter = props => (
@@ -33,6 +75,7 @@ export const UserList = props => (
filters={}
filterDefaultValues={{ guests: true, deactivated: false }}
bulkActionButtons={false}
+ actions={}
>