{
- tasks?.map((t) => {
- const isSelected = t.id == task?.id;
- const duration = t.finished_at && t.claimed_at ? Math.max(t.finished_at - t.claimed_at, 0) : null
-
- return (
-
-
-
-
- {t.display_name}
-
- {dayjs.unix(t.created_at).toNow(true)} ago
- {duration != null ? — : null}
- {duration != null ? {duration}s : null}
-
-
-
-
-
-
-
- )
- })
+ tasksCount ?
+ (
+
setPage(p)} />
+ )
+ : null
}
-
-
- {
- tasksCount ?
- (
-
setPage(p)} />
- )
- : null
- }
-
-
-
-
- {
- task ? (
-
-
-
- ) : null
- }
+
+