diff --git a/apps/web/app/hooks/features/useTaskEstimation.ts b/apps/web/app/hooks/features/useTaskEstimation.ts index cd203d45f..b5ed39c7a 100644 --- a/apps/web/app/hooks/features/useTaskEstimation.ts +++ b/apps/web/app/hooks/features/useTaskEstimation.ts @@ -18,7 +18,7 @@ export function useTaskEstimation(task?: Nullable) { const { h, m } = secondsToTime($task?.estimate || 0); setValue({ hours: h ? h.toString() : '', - minutes: pad(m).toString() + minutes: m ? pad(m).toString() : '' }); }, [$task?.estimate]); diff --git a/apps/web/lib/features/team/user-team-card/index.tsx b/apps/web/lib/features/team/user-team-card/index.tsx index 1b631a1dd..171380951 100644 --- a/apps/web/lib/features/team/user-team-card/index.tsx +++ b/apps/web/lib/features/team/user-team-card/index.tsx @@ -181,6 +181,7 @@ export function UserTeamCard({ activeAuthTask={true} className="w-1/5 lg:px-3 2xl:w-52 3xl:w-64" /> + {/* TodayWorkedTime */} diff --git a/apps/web/lib/features/team/user-team-card/task-estimate.tsx b/apps/web/lib/features/team/user-team-card/task-estimate.tsx index e1c9b2359..93d3126db 100644 --- a/apps/web/lib/features/team/user-team-card/task-estimate.tsx +++ b/apps/web/lib/features/team/user-team-card/task-estimate.tsx @@ -4,7 +4,7 @@ import { mergeRefs, secondsToTime } from '@app/helpers'; import { I_TMCardTaskEditHook, I_TeamMemberCardHook } from '@app/hooks'; import { IClassName } from '@app/interfaces'; import { clsxm } from '@app/utils'; -import { Text } from 'lib/components'; +import { SpinnerLoader, Text } from 'lib/components'; import { EditPenBoxIcon, CheckCircleTickIcon as TickSaveIcon } from 'assets/svg'; import { TaskEstimate, TaskProgressBar } from 'lib/features'; import { useRef } from 'react'; @@ -90,13 +90,19 @@ function TaskEstimateInput({ memberInfo, edition }: Omit task && edition.setEstimateEditMode(true)} > - + {loadingRef.current ? ( +
+ +
+ ) : ( + + )} )}