+ {
+ !usersFetched ?
+
+
+
+
+ Loading...
+
+
+
+ : users ?
+
+
+
+
+
+ Username
+ Password
+ Role(s)
+ Action
+
+
+
+ {users.users.map(user => (
+
+
+ {user.username}
+
+ {user.password}
+
+
+
+
+
+
+
+
+
+
+
+
+ ))}
+
+
+
+
+
+
+
+
+ :
+
+
+
+ {errorMessage}
+
+
+
+ }
+
+ );
+ }
+}
+
+ManageUsersForm.propTypes = {
+ classes: PropTypes.object.isRequired,
+ users: PropTypes.object,
+ usersFetched: PropTypes.bool.isRequired,
+ errorMessage: PropTypes.string,
+ onSubmit: PropTypes.func.isRequired,
+ onReset: PropTypes.func.isRequired,
+ handleValueChange: PropTypes.func.isRequired,
+ handleCheckboxChange: PropTypes.func.isRequired,
+};
+
+export default withStyles(styles)(ManageUsersForm);