fix: unwrap nested team data in hooks instead of components

- useMyTeams and useTeamsByUserId now unwrap {team: {...}} structure
- Simplified dashboard and user profile components

🤖 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-30 14:13:11 +07:00
co-authored by Claude
parent 45c75b3283
commit 23b6677323
3 changed files with 60 additions and 58 deletions
+1 -2
View File
@@ -131,8 +131,7 @@ const DashboardPage: FC = (): ReactElement => {
{myTeams.length > 0 ? (
(() => {
const item = myTeams[0] as any;
const team = item.team || item;
const team = myTeams[0] as any;
return (
<div className="mb-6 md:mb-8">
<h2 className="text-xl md:text-2xl font-bold text-gray-900 dark:text-white mb-3 md:mb-4">