- {cycle.task} |
- {cycle.minutesAmount} minutes |
-
- {formatDistanceToNow(new Date(cycle.startDate), {
- addSuffix: true,
- locale: enUS,
- })}
- |
-
- {cycle.finishedDate && (
- Concluded
- )}
+ {cycles.length === 0 ? (
+
+ No Tasks in History
+
+
+ "I will not lose my temper with this person who has not started any
+ tasks yet. I will not..."
+
+
+
+ ) : (
+
+ History
+
+
+
+ Task |
+ Duration |
+ Date |
+ Status |
+
+
+
+ {cycles.map((cycle) => {
+ return (
+
+ {cycle.task} |
+ {cycle.minutesAmount} minutes |
+
+ {formatDistanceToNow(new Date(cycle.startDate), {
+ addSuffix: true,
+ locale: enUS,
+ })}
+ |
+
+ {cycle.finishedDate && (
+ Concluded
+ )}
- {cycle.interruptedDate && (
- Interrupted
- )}
+ {cycle.interruptedDate && (
+ Interrupted
+ )}
- {!cycle.finishedDate && !cycle.interruptedDate && (
- Ongoing
- )}
- |
-
- )
- })}
-
-
-
+ {!cycle.finishedDate && !cycle.interruptedDate && (
+ Ongoing
+ )}
+ |
+
+ )
+ })}
+