Skip to content

Commit

Permalink
Remove console log and enhance UI behavior
Browse files Browse the repository at this point in the history
Eliminated a debug console log for cleaner output. Adjusted UI handling to conditionally render interaction elements only for non-public teams, improving user interface logic. Also refined layout width responsiveness for better-style consistency.
  • Loading branch information
paradoxe35 committed Oct 10, 2024
1 parent 6c306b6 commit f5d6420
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 0 additions & 2 deletions apps/web/app/[locale]/team/[teamId]/[profileLink]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,6 @@ const Team = () => {

const breadcrumb = [...JSON.parse(t('pages.home.BREADCRUMB'))];

console.log(publicTeamData);

return (
<MainLayout publicTeam={publicTeam}>
<MainHeader fullWidth={fullWidth}>
Expand Down
40 changes: 21 additions & 19 deletions apps/web/lib/features/team/user-team-card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,29 +168,31 @@ export function UserTeamCard({
{/* Show user name, email and image */}
<div className="relative">
<UserInfo memberInfo={memberInfo} className="2xl:w-[20.625rem] w-1/4" publicTeam={publicTeam} />
<div
onClick={() => {
setUserDetailAccordion(
userDetailAccordion == memberInfo.memberUser?.id
? ''
: memberInfo.memberUser?.id ?? ''
);
setShowActivity(false);
}}
className={clsxm('h-6 w-6 absolute right-4 top-0 cursor-pointer p-[3px]')}
>
<ChevronDoubleDownIcon
className={clsxm(
'h-4 w-4 transition-all',
userDetailAccordion == memberInfo.memberUser?.id && 'rotate-180'
)}
/>
</div>
{!publicTeam && (
<div
onClick={() => {
setUserDetailAccordion(
userDetailAccordion == memberInfo.memberUser?.id
? ''
: memberInfo.memberUser?.id ?? ''
);
setShowActivity(false);
}}
className={clsxm('h-6 w-6 absolute right-4 top-0 cursor-pointer p-[3px]')}
>
<ChevronDoubleDownIcon
className={clsxm(
'h-4 w-4 transition-all',
userDetailAccordion == memberInfo.memberUser?.id && 'rotate-180'
)}
/>
</div>
)}
</div>
<VerticalSeparator />

{/* Task information */}
<div className="flex justify-between items-center flex-1 min-w-[38%]">
<div className="flex justify-between items-center flex-1 md:min-w-[37%] xl:min-w-[40%]">
<TaskInfo
edition={taskEdition}
memberInfo={memberInfo}
Expand Down

0 comments on commit f5d6420

Please sign in to comment.