From 80e249c9586a974138e46b52a2a4cb88744f9094 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sun, 24 Nov 2019 16:33:02 +0200 Subject: [PATCH] Task list: fix typing. --- src/components/TaskList.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/TaskList.tsx b/src/components/TaskList.tsx index 4437e68..c8c29ef 100644 --- a/src/components/TaskList.tsx +++ b/src/components/TaskList.tsx @@ -6,11 +6,11 @@ import { List, ListItem } from '../widgets/List'; import { TaskType } from '../pim-types'; -const TaskListItem = React.memo((_props: any) => { +const TaskListItem = React.memo((props: { entry: TaskType, onClick: (entry: TaskType) => void }) => { const { entry, onClick, - } = _props; + } = props; const title = entry.title; return ( @@ -29,7 +29,7 @@ const sortSelector = createSelector( class TaskList extends React.PureComponent { public props: { entries: TaskType[]; - onItemClick: (contact: TaskType) => void; + onItemClick: (entry: TaskType) => void; }; public render() {