Skip to content

Commit c550b02

Browse files
committed
Slash
1 parent 7f49cbc commit c550b02

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.vscode/settings.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
"javascript.format.enable": false,
1111
"typescript.format.enable": false,
1212

13+
"editor.formatOnSave": true,
1314
"[typescript]": {
14-
"editor.defaultFormatter": "esbenp.prettier-vscode",
15-
"editor.formatOnSave": true
15+
"editor.defaultFormatter": "esbenp.prettier-vscode"
16+
},
17+
"[typescriptreact]": {
18+
"editor.defaultFormatter": "esbenp.prettier-vscode"
1619
},
1720

1821
"search.exclude": {

src/screens/projects/components/TaskNode/TaskNode.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default observer(function TaskNode({ task }: TaskNodeProps) {
2929
const lastDateInProgress = useMemo(() => {
3030
const lastDate = last(task.datesInProgress);
3131
if (lastDate) {
32-
return taskLastActiveDateFormat(lastDate)
32+
return taskLastActiveDateFormat(lastDate);
3333
}
3434
return undefined;
3535
}, [task.datesInProgress]);
@@ -44,7 +44,9 @@ export default observer(function TaskNode({ task }: TaskNodeProps) {
4444
return (
4545
<div className={classes.taskNode}>
4646
<span className={classes.taskTitle}>{task.title}</span>
47-
<span className={classes.date}>{lastDateInProgress}</span>
47+
{lastDateInProgress && (
48+
<span className={classes.date}>{`${lastDateInProgress} /`}</span>
49+
)}
4850
<span>{duration}</span>
4951
<span className={classes.taskNodeActions}>
5052
{Features.myDay && (
@@ -85,5 +87,5 @@ const useStyle = createUseStyles({
8587
},
8688
date: {
8789
marginRight: 5,
88-
}
90+
},
8991
});

0 commit comments

Comments
 (0)