fixed some missing or wrong type annotations

This commit is contained in:
Sebastian Sdorra
2018-07-18 09:52:49 +02:00
parent 43ce15ac88
commit 12d71827b4
3 changed files with 4 additions and 3 deletions

View File

@@ -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,

View File

@@ -6,7 +6,7 @@ import type { UserEntry } from "../types/UserEntry";
type Props = {
entries: Array<UserEntry>,
deleteUser: string => void,
deleteUser: User => void,
editUser: User => void
};

View File

@@ -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));