From 2df8bc50c351a617963da9643f9bb0286b2ab0ce Mon Sep 17 00:00:00 2001 From: cesarLima1 <105736261+cesarLima1@users.noreply.github.com> Date: Wed, 27 Nov 2024 12:10:56 -0400 Subject: [PATCH] [TM-1385] change position of create user button to user list in admin view (#709) --- .../Actions/ListActionsCreateFilter.tsx | 22 +++++++++++++++++ .../modules/user/components/UserList.tsx | 6 +++-- .../modules/user/components/UserShowAside.tsx | 24 +------------------ 3 files changed, 27 insertions(+), 25 deletions(-) create mode 100644 src/admin/components/Actions/ListActionsCreateFilter.tsx diff --git a/src/admin/components/Actions/ListActionsCreateFilter.tsx b/src/admin/components/Actions/ListActionsCreateFilter.tsx new file mode 100644 index 000000000..d47a81d90 --- /dev/null +++ b/src/admin/components/Actions/ListActionsCreateFilter.tsx @@ -0,0 +1,22 @@ +import DownloadIcon from "@mui/icons-material/GetApp"; +import { Button, CreateButton, FilterButton, TopToolbar } from "react-admin"; +import { When } from "react-if"; + +interface ListActionsCreateFilterProps { + isSuperAdmin?: boolean; + onExport?: () => void; +} + +const ListActionsCreateFilter = ({ isSuperAdmin, onExport }: ListActionsCreateFilterProps) => ( + + + + + + + -