mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 17:56:17 +01:00
correcting input type of used deleteUser method
This commit is contained in:
@@ -6,7 +6,7 @@ import { confirmAlert } from '../../components/ConfirmAlert';
|
||||
type Props = {
|
||||
user: User,
|
||||
confirmDialog?: boolean,
|
||||
deleteUser: (link: string) => void,
|
||||
deleteUser: (user: User) => void,
|
||||
};
|
||||
|
||||
class DeleteUserButton extends React.Component<Props> {
|
||||
@@ -16,7 +16,7 @@ class DeleteUserButton extends React.Component<Props> {
|
||||
};
|
||||
|
||||
deleteUser = () => {
|
||||
this.props.deleteUser(this.props.user._links.delete.href);
|
||||
this.props.deleteUser(this.props.user);
|
||||
};
|
||||
|
||||
confirmDelete = () =>{
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { User } from "../types/User";
|
||||
|
||||
type Props = {
|
||||
entry: { loading: boolean, error: Error, user: User },
|
||||
deleteUser: string => void,
|
||||
deleteUser: User => void,
|
||||
editUser: User => void
|
||||
};
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ type Props = {
|
||||
error: Error,
|
||||
userEntries: Array<UserEntry>,
|
||||
fetchUsers: () => void,
|
||||
deleteUser: string => void,
|
||||
deleteUser: User => void,
|
||||
addUser: User => void,
|
||||
updateUser: User => void,
|
||||
editUser: User => void,
|
||||
|
||||
Reference in New Issue
Block a user