Skip to content

Commit

Permalink
Added Planner Overview
Browse files Browse the repository at this point in the history
  • Loading branch information
anoopkarnik committed Jul 31, 2024
1 parent e3b5dd9 commit 21dac7e
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,16 +226,7 @@ const Overview = () => {
<div className='grid grid-cols-4 items-center gap-4'>
<div>{task['Remaining Time (in Hrs)']}</div>
<div>{task['Total Time Spent']}</div>
<Button className='px-5 bg-green-900'onClick={() => {
if (timers[task.id]?.intervalId) {
stopTimer(task.id);
} else {
startTimer(task.id);
}
}}
>
{timers[task.id]?.intervalId ? formatTime(timers[task.id].elapsed) : 'Start'}
</Button>
<Button className='px-5 bg-green-900' onClick={() => startTimer(task.id)}>Start</Button>
<Checkbox id='completed' onCheckedChange={() => handleItemsCheckChange(task.id, 'Completed', !task.Completed)}/>
</div>
</div>
Expand Down

0 comments on commit 21dac7e

Please sign in to comment.