Skip to content

Commit

Permalink
fix: remove blank space after adding a task to tomorrow plan
Browse files Browse the repository at this point in the history
  • Loading branch information
CREDO23 committed Aug 16, 2024
1 parent 928720c commit 148e8b4
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions apps/web/lib/features/task/task-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -620,15 +620,16 @@ function TaskCardMenu({
/>
</li>
)}

<li className="mb-2">
<PlanTask
planMode="tomorow"
taskId={task.id}
employeeId={profile?.member?.employeeId ?? ''}
taskPlannedForTomorrow={taskPlannedTomorrow}
/>
</li>
{!taskPlannedTomorrow && (
<li className="mb-2">
<PlanTask
planMode="tomorow"
taskId={task.id}
employeeId={profile?.member?.employeeId ?? ''}
taskPlannedForTomorrow={taskPlannedTomorrow}
/>
</li>
)}
<li className="mb-2">
<PlanTask
planMode="custom"
Expand Down Expand Up @@ -774,7 +775,7 @@ export function PlanTask({
)}
{planMode === 'tomorow' && !taskPlannedForTomorrow && (
<span>
{isPending ? (
{isPending || createDailyPlanLoading ? (
<ReloadIcon className="animate-spin mr-2 h-4 w-4" />
) : (
t('dailyPlan.PLAN_FOR_TOMORROW')
Expand Down

0 comments on commit 148e8b4

Please sign in to comment.