diff --git a/apps/web/src/pages/HomePage.tsx b/apps/web/src/pages/HomePage.tsx index b1d31aa7..44d33e81 100644 --- a/apps/web/src/pages/HomePage.tsx +++ b/apps/web/src/pages/HomePage.tsx @@ -4,7 +4,7 @@ import type { MatchEventType, MatchSummaryResponse, } from '@lolympus/contracts'; -import { ChevronLeft, ChevronRight } from 'lucide-react'; +import { ChevronLeft, ChevronRight, Trophy } from 'lucide-react'; import { Link, useSearchParams } from 'react-router'; import { useCommunityLeaderboard, @@ -172,29 +172,12 @@ function UpcomingMatches({ ); } -function HistoryResult({ - match, - showTeamNames = false, -}: { - match: MatchSummaryResponse; - showTeamNames?: boolean; -}) { +function HistoryResult({ match }: { match: MatchSummaryResponse }) { const result = match.historyResult; - const teamLabelClass = `min-w-0 break-words text-content-muted${showTeamNames ? '' : ' md:truncate'}`; + const teamLabelClass = 'min-w-0 break-words text-content-muted md:truncate'; if (match.status === 'finished' && result) { switch (result.type) { case 'score': { - if (showTeamNames && result.teamAName && result.teamBName) { - return ( - - {result.teamAName}{' '} - - {result.teamAWins}–{result.teamBWins} - {' '} - {result.teamBName} - - ); - } const label = result.winnerTeamName ? `${result.winnerTeamName} 승` : undefined; @@ -418,42 +401,76 @@ function RecentMatchResults({ matches }: { matches: MatchSummaryResponse[] }) {