mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
refactoring
This commit is contained in:
@@ -6,7 +6,7 @@ import type { User } from "../types/User";
|
||||
import type { UserEntry } from "../types/UserEntry";
|
||||
import Loading from "../../components/Loading";
|
||||
|
||||
import { updateUser, fetchUser } from "../modules/users";
|
||||
import { modifyUser, fetchUser } from "../modules/users";
|
||||
|
||||
type Props = {
|
||||
name: string,
|
||||
@@ -48,7 +48,7 @@ const mapDispatchToProps = dispatch => {
|
||||
dispatch(fetchUser(name));
|
||||
},
|
||||
updateUser: (user: User) => {
|
||||
dispatch(updateUser(user));
|
||||
dispatch(modifyUser(user));
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user