|
|
@ -6,11 +6,11 @@ import { List, ListItem } from '../widgets/List';
|
|
|
|
|
|
|
|
|
|
|
|
import { TaskType } from '../pim-types';
|
|
|
|
import { TaskType } from '../pim-types';
|
|
|
|
|
|
|
|
|
|
|
|
const TaskListItem = React.memo((_props: any) => {
|
|
|
|
const TaskListItem = React.memo((props: { entry: TaskType, onClick: (entry: TaskType) => void }) => {
|
|
|
|
const {
|
|
|
|
const {
|
|
|
|
entry,
|
|
|
|
entry,
|
|
|
|
onClick,
|
|
|
|
onClick,
|
|
|
|
} = _props;
|
|
|
|
} = props;
|
|
|
|
const title = entry.title;
|
|
|
|
const title = entry.title;
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
@ -29,7 +29,7 @@ const sortSelector = createSelector(
|
|
|
|
class TaskList extends React.PureComponent {
|
|
|
|
class TaskList extends React.PureComponent {
|
|
|
|
public props: {
|
|
|
|
public props: {
|
|
|
|
entries: TaskType[];
|
|
|
|
entries: TaskType[];
|
|
|
|
onItemClick: (contact: TaskType) => void;
|
|
|
|
onItemClick: (entry: TaskType) => void;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public render() {
|
|
|
|
public render() {
|
|
|
|