feat: route internal match game details by community

This commit is contained in:
dahyeon committed 2026-06-26 09:41:04 -07:00
1 parent d6e0bbf0e8
commit 51ea9c42d3
6 files changed
+68 -7

No files matched your search

+6 -1
View File
@@ -45,6 +45,7 @@ import {
teamIndexColorClasses,
teamIndexLabel,
} from "../lib/league";
import { internalMatchGamePath } from "../lib/internal-match-routes";
import type {
AuctionTopTierThreshold,
ApiCommunityUserSearchCandidate,
@@ -2237,7 +2238,11 @@ function MatchGameListSection({ match }: { match: MatchDetailView }) {
return (
<Link
key={gameNumber}
to={`/match/${match.id}/game/${gameNumber}`}
to={internalMatchGamePath(
DEFAULT_COMMUNITY_ID,
match.id,
gameNumber,
)}
className={`${rowClass} group transition-colors hover:bg-primary/5 focus-visible:bg-primary/8 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-primary`}
aria-label={`${gameNumber}경기 ${resolveMatchTeamName(match, game.blueTeamIndex)} 대 ${resolveMatchTeamName(match, game.redTeamIndex)} 상세 보기`}
>