added loading and error state

This commit is contained in:
Florian Scholdei
2019-02-06 10:42:25 +01:00
parent 1c0f417f9a
commit 6f1615ef0a
5 changed files with 76 additions and 19 deletions

View File

@@ -71,8 +71,8 @@ class EditUser extends React.Component<Props> {
}
const mapStateToProps = (state, ownProps) => {
const loading = isModifyUserPending(state, ownProps.user.name) || isDeleteUserPending(state, ownProps.user.name);
const error = getModifyUserFailure(state, ownProps.user.name) || getDeleteUserFailure(state, ownProps.user.name);
const loading = isModifyUserPending(state, ownProps.user.name);
const error = getModifyUserFailure(state, ownProps.user.name);
return {
loading,
error