TaskListItem: change from anonymous to named function.

Other than the stylistic choice, this is also very useful for the react
dev tools, which show the component's name.
master
Tom Hacohen 5 years ago
parent ad3958ae88
commit 8e1e3b8fe1

@ -14,7 +14,7 @@ interface PropsType {
onSave: (item: PimType, journalUid: string, originalItem?: PimType) => Promise<void>; onSave: (item: PimType, journalUid: string, originalItem?: PimType) => Promise<void>;
} }
const TaskListItem = React.memo((props: PropsType) => { export default React.memo(function TaskListItem(props: PropsType) {
const { const {
entry: task, entry: task,
onClick, onClick,
@ -42,5 +42,3 @@ const TaskListItem = React.memo((props: PropsType) => {
/> />
); );
}); });
export default TaskListItem;
Loading…
Cancel
Save