mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +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 = () =>{
|
||||
|
||||
Reference in New Issue
Block a user