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:
co-authored by
Claude
parent
a9a1e5450b
commit
a74f0181f1
@@ -13,7 +13,8 @@
|
|||||||
"Bash(libs/service/src/types/supabase.ts)",
|
"Bash(libs/service/src/types/supabase.ts)",
|
||||||
"Bash(npx nx build:*)",
|
"Bash(npx nx build:*)",
|
||||||
"Bash(git add:*)",
|
"Bash(git add:*)",
|
||||||
"Bash(git commit:*)"
|
"Bash(git commit:*)",
|
||||||
|
"Bash(git push)"
|
||||||
],
|
],
|
||||||
"deny": [],
|
"deny": [],
|
||||||
"ask": []
|
"ask": []
|
||||||
|
|||||||
@@ -397,12 +397,14 @@ const TeamDashboardPage: FC = (): ReactElement => {
|
|||||||
</Button>
|
</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Link to={`/teams/${teamId}/edit`}>
|
{!team.has_submission && (
|
||||||
<Button className="w-full" variant="secondary">
|
<Link to={`/teams/${teamId}/edit`}>
|
||||||
<Icon icon="mdi:pencil" className="inline-block mr-2" />
|
<Button className="w-full" variant="secondary">
|
||||||
Edit Team Info
|
<Icon icon="mdi:pencil" className="inline-block mr-2" />
|
||||||
</Button>
|
Edit Team Info
|
||||||
</Link>
|
</Button>
|
||||||
|
</Link>
|
||||||
|
)}
|
||||||
<Link to={`/teams/${teamId}/members`}>
|
<Link to={`/teams/${teamId}/members`}>
|
||||||
<Button className="w-full" variant="secondary">
|
<Button className="w-full" variant="secondary">
|
||||||
<Icon
|
<Icon
|
||||||
|
|||||||
Reference in New Issue
Block a user