fix(teams): hide edit team info for submitted teams

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Maulana Sodiqin
2025-11-29 16:13:16 +07:00
co-authored by Claude
parent a9a1e5450b
commit a74f0181f1
2 changed files with 10 additions and 7 deletions
+2 -1
View File
@@ -13,7 +13,8 @@
"Bash(libs/service/src/types/supabase.ts)",
"Bash(npx nx build:*)",
"Bash(git add:*)",
"Bash(git commit:*)"
"Bash(git commit:*)",
"Bash(git push)"
],
"deny": [],
"ask": []
@@ -397,12 +397,14 @@ const TeamDashboardPage: FC = (): ReactElement => {
</Button>
</>
)}
<Link to={`/teams/${teamId}/edit`}>
<Button className="w-full" variant="secondary">
<Icon icon="mdi:pencil" className="inline-block mr-2" />
Edit Team Info
</Button>
</Link>
{!team.has_submission && (
<Link to={`/teams/${teamId}/edit`}>
<Button className="w-full" variant="secondary">
<Icon icon="mdi:pencil" className="inline-block mr-2" />
Edit Team Info
</Button>
</Link>
)}
<Link to={`/teams/${teamId}/members`}>
<Button className="w-full" variant="secondary">
<Icon