|
|
@ -8,6 +8,8 @@ import { ListItem } from '../../widgets/List';
|
|
|
|
|
|
|
|
|
|
|
|
import Checkbox from '@material-ui/core/Checkbox';
|
|
|
|
import Checkbox from '@material-ui/core/Checkbox';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
|
|
|
|
|
|
|
interface PropsType {
|
|
|
|
interface PropsType {
|
|
|
|
entry: TaskType;
|
|
|
|
entry: TaskType;
|
|
|
|
onClick: (task: TaskType) => void;
|
|
|
|
onClick: (task: TaskType) => void;
|
|
|
@ -31,6 +33,7 @@ export default React.memo(function TaskListItem(props: PropsType) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<ListItem
|
|
|
|
<ListItem
|
|
|
|
primaryText={title}
|
|
|
|
primaryText={title}
|
|
|
|
|
|
|
|
secondaryText={task.dueDate && `Due ${moment().to(task.dueDate.toJSDate())}`}
|
|
|
|
onClick={() => onClick(task)}
|
|
|
|
onClick={() => onClick(task)}
|
|
|
|
leftIcon={
|
|
|
|
leftIcon={
|
|
|
|
<Checkbox
|
|
|
|
<Checkbox
|
|
|
|