From b6602502d2721222279de78fbf3532ad75c6d116 Mon Sep 17 00:00:00 2001 From: dklimpel <5740567+dklimpel@users.noreply.github.com> Date: Tue, 8 Jun 2021 08:34:38 +0200 Subject: [PATCH] Fix CSV import button --- src/components/users.js | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/components/users.js b/src/components/users.js index ecce484..de415d2 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -36,7 +36,6 @@ import { DeleteButton, SaveButton, regex, - useRedirect, useTranslate, Pagination, CreateButton, @@ -45,11 +44,12 @@ import { sanitizeListRestProps, NumberField, } from "react-admin"; +import { Link } from "react-router-dom"; import { ServerNoticeButton, ServerNoticeBulkButton } from "./ServerNotices"; import { DeviceRemoveButton } from "./devices"; import { makeStyles } from "@material-ui/core/styles"; -const redirect = (basePath, id, data) => { +const redirect = () => { return { pathname: "/import_users", }; @@ -85,7 +85,6 @@ const UserListActions = ({ total, ...rest }) => { - const redirectTo = useRedirect(); return ( {filters && @@ -106,12 +105,7 @@ const UserListActions = ({ maxResults={maxResults} /> {/* Add your custom actions */} -