diff --git a/src/components/users.js b/src/components/users.js
index 5c045fd..29879e4 100644
--- a/src/components/users.js
+++ b/src/components/users.js
@@ -259,20 +259,31 @@ export function generateRandomUser() {
};
}
-const UserEditToolbar = props => {
+const UserEditToolbar = props => (
+
+
+
+);
+
+const UserEditActions = ({ data }) => {
const translate = useTranslate();
+ var userStatus = "";
+ if (data) {
+ userStatus = data.deactivated;
+ }
+
return (
-
-
+
+ {!userStatus && }
-
-
+
);
};
@@ -334,7 +345,7 @@ export const UserEdit = props => {
const classes = useStyles();
const translate = useTranslate();
return (
- }>
+ } actions={}>
}>