mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 14:35:45 +01:00
fixed some missing or wrong type annotations
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import React from "react";
|
||||
import EditButton from "../../components/EditButton";
|
||||
import type { User } from "../types/User";
|
||||
import type { UserEntry } from "../types/UserEntry";
|
||||
|
||||
type Props = {
|
||||
entry: UserEntry,
|
||||
|
||||
@@ -6,7 +6,7 @@ import type { UserEntry } from "../types/UserEntry";
|
||||
|
||||
type Props = {
|
||||
entries: Array<UserEntry>,
|
||||
deleteUser: string => void,
|
||||
deleteUser: User => void,
|
||||
editUser: User => void
|
||||
};
|
||||
|
||||
|
||||
@@ -112,8 +112,8 @@ const mapDispatchToProps = dispatch => {
|
||||
updateUser: (user: User) => {
|
||||
dispatch(updateUser(user));
|
||||
},
|
||||
deleteUser: (link: string) => {
|
||||
dispatch(deleteUser(link));
|
||||
deleteUser: (user: User) => {
|
||||
dispatch(deleteUser(user));
|
||||
},
|
||||
editUser: (user: User) => {
|
||||
dispatch(editUser(user));
|
||||
|
||||
Reference in New Issue
Block a user