From d34f44008ab338d529ebd3e5472dfdfd82d6a555 Mon Sep 17 00:00:00 2001 From: Badal Khatri Date: Thu, 28 Dec 2023 09:35:32 +0530 Subject: [PATCH 1/5] Minor Bug Fixes --- .../app/[locale]/settings/personal/page.tsx | 2 - .../blocks/task-estimations-info.tsx | 1 + apps/web/lib/components/dropdown.tsx | 28 +++++----- .../user-team-block-header.tsx | 54 +++++++++---------- 4 files changed, 43 insertions(+), 42 deletions(-) diff --git a/apps/web/app/[locale]/settings/personal/page.tsx b/apps/web/app/[locale]/settings/personal/page.tsx index 49f506a81..c30ecf250 100644 --- a/apps/web/app/[locale]/settings/personal/page.tsx +++ b/apps/web/app/[locale]/settings/personal/page.tsx @@ -17,8 +17,6 @@ const Personal = () => { const t = useTranslations(); const [user] = useRecoilState(userState); const breadcrumb = [...JSON.parse(t('pages.settings.BREADCRUMB'))]; - console.log(JSON.parse(t('pages.settings.BREADCRUMB'))); - return ( <> diff --git a/apps/web/components/pages/task/details-section/blocks/task-estimations-info.tsx b/apps/web/components/pages/task/details-section/blocks/task-estimations-info.tsx index aef2d64cb..7c7be7f80 100644 --- a/apps/web/components/pages/task/details-section/blocks/task-estimations-info.tsx +++ b/apps/web/components/pages/task/details-section/blocks/task-estimations-info.tsx @@ -49,6 +49,7 @@ const TaskEstimationsInfo = () => { key={member.id} profilePicSrc={member.user?.imageUrl} names={member.fullName} + userId={member.userId} //@ts-ignore time={ ({ /> )} -
- {items.map((Item, index) => ( - - {({ active, selected }) => { - return Item.Label ? : <>; - }} - - ))} +
+ {items.map((Item, index) => ( + + {({ active, selected }) => { + return Item.Label ? ( + + ) : ( + <> + ); + }} + + ))}
{/* Additional content */} 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 e8d944ca6..a81e0b8d2 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 @@ -53,27 +53,26 @@ export function UserTeamBlockHeader() { return ( <>
-
+
setActiveFilter('all')} >

All members

{members?.length} @@ -81,23 +80,23 @@ export function UserTeamBlockHeader() {
setActiveFilter('idle')} >

Not working

{membersStatusNumber.idle} @@ -105,16 +104,16 @@ export function UserTeamBlockHeader() {
setActiveFilter('running')} > @@ -122,7 +121,7 @@ export function UserTeamBlockHeader() { {membersStatusNumber.running} @@ -130,16 +129,15 @@ export function UserTeamBlockHeader() {
setActiveFilter('pause')} > @@ -147,7 +145,7 @@ export function UserTeamBlockHeader() { {membersStatusNumber.pause} @@ -155,16 +153,16 @@ export function UserTeamBlockHeader() {
setActiveFilter('online')} > @@ -172,14 +170,14 @@ export function UserTeamBlockHeader() { {membersStatusNumber.online}
-
+
{/* */}