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 React from "react";
|
||||||
import EditButton from "../../components/EditButton";
|
import EditButton from "../../components/EditButton";
|
||||||
import type { User } from "../types/User";
|
import type { User } from "../types/User";
|
||||||
|
import type { UserEntry } from "../types/UserEntry";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
entry: UserEntry,
|
entry: UserEntry,
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import type { UserEntry } from "../types/UserEntry";
|
|||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
entries: Array<UserEntry>,
|
entries: Array<UserEntry>,
|
||||||
deleteUser: string => void,
|
deleteUser: User => void,
|
||||||
editUser: User => void
|
editUser: User => void
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -112,8 +112,8 @@ const mapDispatchToProps = dispatch => {
|
|||||||
updateUser: (user: User) => {
|
updateUser: (user: User) => {
|
||||||
dispatch(updateUser(user));
|
dispatch(updateUser(user));
|
||||||
},
|
},
|
||||||
deleteUser: (link: string) => {
|
deleteUser: (user: User) => {
|
||||||
dispatch(deleteUser(link));
|
dispatch(deleteUser(user));
|
||||||
},
|
},
|
||||||
editUser: (user: User) => {
|
editUser: (user: User) => {
|
||||||
dispatch(editUser(user));
|
dispatch(editUser(user));
|
||||||
|
|||||||
Reference in New Issue
Block a user