Skip to content

Commit

Permalink
[Fix]: Daily Plan | Total estimated time on Outstanding UI (#2859)
Browse files Browse the repository at this point in the history
* feat: Display total estimated time for all tasks in the Outstanding tab (read-only)

* fix: same bug
  • Loading branch information
Innocent-Akim authored Aug 8, 2024
1 parent 84618f5 commit 82444db
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ export function TaskEstimatedCount({ outstandingPlans }: ITaskEstimatedCount) {
const element = outstandingPlans?.map((plan: IDailyPlan) => plan.tasks?.map((task) => task));
const { timesEstimated, totalTasks } = estimatedTotalTime(element || []);
const { h: hour, m: minute } = secondsToTime(timesEstimated || 0);

return (
<div className="flex space-x-10">
<div className="flex space-x-2">
<span className="text-slate-600">Estimated:</span>
<span className="text-slate-900 font-semibold text-[12px]">
<span className="text-slate-600 dark:text-slate-200">Estimated:</span>
<span className="text-slate-900 dark:text-slate-200 font-semibold text-[12px]">
{hour}h{minute}m
</span>
</div>
<VerticalSeparator className="border-slate-400" />
<div className="flex space-x-2">
<span className="text-slate-600">Total tasks:</span>
<span className="text-slate-900 font-semibold text-[12px]">{totalTasks}</span>
<span className="text-slate-600 dark:text-slate-200">Total tasks:</span>
<span className="text-slate-900 dark:text-slate-200 font-semibold text-[12px]">{totalTasks}</span>
</div>
</div>
);
Expand Down

0 comments on commit 82444db

Please sign in to comment.