feat(hackathon): improve team member count display and submission verification
- Fix browse teams page to use member_count from API response - Add member_count field to TTeamItem type - Add minimum team members requirement (2) for project submission - Add type-to-confirm verification before final submission 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude
parent
fa30849d03
commit
e1f13b3872
@@ -209,7 +209,7 @@ const BrowseTeamsPage: FC = (): ReactElement => {
|
||||
</p>
|
||||
<p className="whitespace-nowrap shrink-0 flex items-center gap-x-1">
|
||||
<Icon icon="mdi:account-group" />{' '}
|
||||
{team.members?.length || 0} members
|
||||
{team.member_count || 0} members
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -229,7 +229,7 @@ const BrowseTeamsPage: FC = (): ReactElement => {
|
||||
) : (
|
||||
<>
|
||||
{myTeams.length === 0 &&
|
||||
(team.members?.length || 0) < 5 && (
|
||||
(team.member_count || 0) < 5 && (
|
||||
<Button
|
||||
className="w-full"
|
||||
onClick={() => handleJoinRequest(team.id)}
|
||||
|
||||
Reference in New Issue
Block a user