regional teams

This commit is contained in:
2026-02-09 23:36:04 -06:00
parent 5dd41d8022
commit 63853f22de
10 changed files with 181 additions and 85 deletions
+3 -4
View File
@@ -8,7 +8,7 @@ import {
Title
} from "@mantine/core";
import { useTeam } from "../queries";
import Avatar from "@/components/avatar";
import TeamAvatar from "@/components/team-avatar";
import SongSummary from "./team-form/song-summary";
interface TeamCardProps {
@@ -46,11 +46,10 @@ const TeamCard = ({ teamId }: TeamCardProps) => {
>
<Stack gap={2}>
<Group gap="md" align="center" p="xs">
<Avatar
name={team.name}
<TeamAvatar
team={team}
size={40}
radius="md"
src={team.logo ? `/api/files/teams/${team.id}/${team.logo}` : undefined}
style={{
backgroundColor: team.primary_color || undefined,
color: team.accent_color || undefined,
+3 -8
View File
@@ -7,7 +7,7 @@ import {
Stack,
Text,
} from "@mantine/core";
import Avatar from "@/components/avatar";
import TeamAvatar from "@/components/team-avatar";
import { TeamInfo } from "@/features/teams/types";
import { useNavigate } from "@tanstack/react-router";
import { useCallback, useMemo } from "react";
@@ -88,15 +88,10 @@ const TeamList = ({ teams, loading = false, onTeamClick }: TeamListProps) => {
key={`team-list-${team.id}`}
p="xs"
icon={
<Avatar
<TeamAvatar
team={team}
radius="sm"
size={40}
name={`${team.name}`}
src={
team.logo
? `/api/files/teams/${team.id}/${team.logo}`
: undefined
}
/>
}
style={{ cursor: "pointer" }}