i18n
CI/CD Pipeline / Build and Push PocketBase Docker Image (push) Successful in 8s
CI/CD Pipeline / i18n Catalog Check (push) Failing after 10s
CI/CD Pipeline / Build and Push App Docker Image (push) Skipped
CI/CD Pipeline / Deploy to Kubernetes (push) Skipped

This commit is contained in:
2026-08-08 15:29:40 -07:00
parent 22c282d8fa
commit 0a7b5fa00f
178 changed files with 13099 additions and 1285 deletions
@@ -6,31 +6,36 @@ import SwipeableTabs from "@/components/swipeable-tabs";
import { useTournament } from "../../queries";
import MatchList from "@/features/matches/components/match-list";
import { TournamentStats } from "../tournament-stats";
import { useLingui } from "@lingui/react/macro";
interface ProfileProps {
id: string;
}
const Profile = ({ id }: ProfileProps) => {
const { t } = useLingui();
const { data: tournament } = useTournament(id);
if (!tournament) return null;
const tabs = useMemo(() => [
{
label: "Overview",
label: t`Overview`,
value: "overview",
content: <TournamentStats tournament={tournament} />
},
{
label: "Matches",
label: t`Matches`,
value: "matches",
content: <MatchList matches={tournament.matches?.sort((a, b) => b.order - a.order) || []} />
},
{
label: "Teams",
label: t`Teams`,
value: "teams",
content: <>
<TeamList teams={tournament.teams || []} isRegional={tournament.regional} />
</>
}
], [tournament]);
], [tournament, t]);
return <>
<Header tournament={tournament} />