Tasks: reorganizes Tasks components into their own subfolder
parent
680f9698a7
commit
5d54ab4563
@ -0,0 +1,21 @@
|
||||
import * as React from 'react';
|
||||
|
||||
import { TaskType } from '../../pim-types';
|
||||
import { ListItem } from '../../widgets/List';
|
||||
|
||||
const TaskListItem = React.memo((props: { entry: TaskType, onClick: (entry: TaskType) => void }) => {
|
||||
const {
|
||||
entry,
|
||||
onClick,
|
||||
} = props;
|
||||
const title = entry.title;
|
||||
|
||||
return (
|
||||
<ListItem
|
||||
primaryText={title}
|
||||
onClick={() => onClick(entry)}
|
||||
/>
|
||||
);
|
||||
});
|
||||
|
||||
export default TaskListItem;
|
Loading…
Reference in New Issue