From 76b912276ef6fb1241d97c8e13deeb09a37972ac Mon Sep 17 00:00:00 2001 From: Badal Khatri Date: Fri, 29 Dec 2023 09:33:03 +0530 Subject: [PATCH] Fixed minor UI issues --- apps/web/lib/components/tooltip.tsx | 9 +--- .../user-team-block-header.tsx | 45 +++++++++---------- apps/web/lib/features/timer/timer-status.tsx | 5 +-- 3 files changed, 24 insertions(+), 35 deletions(-) diff --git a/apps/web/lib/components/tooltip.tsx b/apps/web/lib/components/tooltip.tsx index 7c1a08e80..5e478bc7a 100644 --- a/apps/web/lib/components/tooltip.tsx +++ b/apps/web/lib/components/tooltip.tsx @@ -47,14 +47,7 @@ export function Tooltip({ {...getTooltipProps()} className={clsx('tooltip-container w-1/3 md:w-fit', labelContainerClassName)} > - - {label} - + {label}
diff --git a/apps/web/lib/features/team/user-team-block/user-team-block-header.tsx b/apps/web/lib/features/team/user-team-block/user-team-block-header.tsx index 99f629688..d59b1c7c4 100644 --- a/apps/web/lib/features/team/user-team-block/user-team-block-header.tsx +++ b/apps/web/lib/features/team/user-team-block/user-team-block-header.tsx @@ -52,18 +52,17 @@ export function UserTeamBlockHeader() { return ( <>
-
+
setActiveFilter('all')} >
setActiveFilter('idle')} > @@ -104,15 +102,15 @@ export function UserTeamBlockHeader() {
setActiveFilter('running')} >
setActiveFilter('pause')} >
setActiveFilter('online')} >
-
+
{/* */} {hook.filterType === 'search' ? ( ) : ( - <> +
+ - - +
)}
diff --git a/apps/web/lib/features/timer/timer-status.tsx b/apps/web/lib/features/timer/timer-status.tsx index 402316c4f..39a22da21 100644 --- a/apps/web/lib/features/timer/timer-status.tsx +++ b/apps/web/lib/features/timer/timer-status.tsx @@ -66,9 +66,8 @@ export function getTimerStatusValue( moment().diff(moment(timerStatus?.lastLog?.startedAt), 'hours') < 24 && timerStatus?.lastLog?.source !== 'TEAMS' ? 'pause' - : member?.employee?.isOnline - ? // && member?.timerStatus !== 'running' - 'online' + : member?.employee?.isOnline && member?.timerStatus === 'running' + ? 'online' : !member?.totalTodayTasks?.length ? 'idle' : member?.timerStatus || 'idle';