한국 멕시코 경기 댓글 기능 추가
This commit is contained in:
1 parent
7625db36a0
commit
8a67094510
10 files changed
+611
-2
No files matched your search
@@ -3,12 +3,16 @@ import { Link, useParams } from "react-router-dom";
|
||||
import Hero from "@/components/Hero";
|
||||
import MatchupHUD from "@/components/MatchupHUD";
|
||||
import Arena from "@/components/Arena";
|
||||
import Comments from "@/components/Comments";
|
||||
import Footer from "@/components/Footer";
|
||||
import { dict, teamShort } from "@/lib/i18n";
|
||||
import { useLang } from "@/lib/useLang";
|
||||
import { getMatch, matchUrl, ApiError } from "@/lib/api";
|
||||
import type { Match } from "@/lib/types";
|
||||
|
||||
// 댓글(한마디)을 노출할 경기 — 한국 vs 멕시코 (A조 2차전)
|
||||
const COMMENTS_MATCH_ID = "A_MEX_KOR_20260619";
|
||||
|
||||
// L2. 경기 상세(대결) 페이지
|
||||
export default function MatchDetail() {
|
||||
const { matchId = "" } = useParams();
|
||||
@@ -98,6 +102,11 @@ export default function MatchDetail() {
|
||||
lang={lang}
|
||||
/>
|
||||
|
||||
{/* 한국–멕시코 경기에만 한마디(댓글) 노출 */}
|
||||
{match.matchId === COMMENTS_MATCH_ID && (
|
||||
<Comments matchId={match.matchId} lang={lang} />
|
||||
)}
|
||||
|
||||
{/* 하단 CTA — 전체 일정으로(다른 경기 투표). ADO2 버튼과 동일 사양(퍼플 #A65EFF) */}
|
||||
<Link
|
||||
to={lang === "en" ? "/?lang=en" : "/"}
|
||||
|
||||
Reference in new issue
Block a user