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

View File

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

View File

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