diff --git a/apps/hackathon/src/app/users/[userId]/page.tsx b/apps/hackathon/src/app/users/[userId]/page.tsx index a6386e8..b49f289 100644 --- a/apps/hackathon/src/app/users/[userId]/page.tsx +++ b/apps/hackathon/src/app/users/[userId]/page.tsx @@ -124,60 +124,66 @@ const UserProfilePage: FC = (): ReactElement => { )} - {/* Teams Section */} + {/* Team Section */} {userTeams.length > 0 ? (

- Teams ({userTeams.length}) + {userTeams.length === 1 ? 'Team' : 'Teams'} ({userTeams.length})

-
+
{userTeams.map((team: any) => ( -
- {team.name} -
+ {team.name}
-
- {team.logo && ( +
+ {team.logo ? ( {team.name} + ) : ( +
+ +
)}
-

+

{team.name}

-
-

- - {team.city} -

-

- - {team.members?.length || 0} members -

+
+ {team.has_submission && ( + + + Submitted + + )} + {team.city && ( + + + {team.city} + + )} + + + {team.member_count || team.members?.length || 0} member{(team.member_count || team.members?.length || 0) !== 1 ? 's' : ''} +
-

- {team.description} -

+ {team.description && ( +

+ {team.description} +

+ )}
))} @@ -186,10 +192,12 @@ const UserProfilePage: FC = (): ReactElement => { ) : (

- Teams + Team

-
👥
+
+ +

Not in any team yet