From a77e6babbc796e8c50f45133d03d52448ed99bfd Mon Sep 17 00:00:00 2001 From: Dirk Klimpel <5740567+dklimpel@users.noreply.github.com> Date: Thu, 6 Jan 2022 13:14:08 +0100 Subject: [PATCH] Create `UserEditActions` on user page --- src/components/users.js | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/components/users.js b/src/components/users.js index 83694f9..21f9c80 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -247,20 +247,26 @@ export function generateRandomUser() { }; } -const UserEditToolbar = props => { +const UserEditToolbar = props => ( + + + +); + +const UserEditActions = ({ data }) => { const translate = useTranslate(); return ( - - + + {!data.deactivated && } - - + ); }; @@ -313,11 +319,12 @@ const UserTitle = ({ record }) => { ); }; + export const UserEdit = props => { const classes = useStyles(); const translate = useTranslate(); return ( - }> + } actions={}> }>