feat: route internal match game details by community
This commit is contained in:
1 parent
d6e0bbf0e8
commit
51ea9c42d3
6 files changed
+68
-7
No files matched your search
@@ -50,6 +50,7 @@ import {
|
||||
teamIndexColorClasses,
|
||||
teamIndexLabel,
|
||||
} from "../lib/league";
|
||||
import { internalMatchGamePath } from "../lib/internal-match-routes";
|
||||
import { formatRankDetail, RankBadge } from "../components/RankBadge";
|
||||
import type {
|
||||
ApiAuction,
|
||||
@@ -780,7 +781,11 @@ function InternalRecentMatchRow({
|
||||
const resultTone = match.win ? "text-blue-400" : "text-red-400";
|
||||
const detailPath =
|
||||
match.internalMatchId && match.gameNumber
|
||||
? `/match/${match.internalMatchId}/game/${match.gameNumber}`
|
||||
? internalMatchGamePath(
|
||||
DEFAULT_COMMUNITY_ID,
|
||||
match.internalMatchId,
|
||||
match.gameNumber,
|
||||
)
|
||||
: null;
|
||||
const content = (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user