Skip to content

Commit

Permalink
[fix] 예정된 토너먼트가 없을 시 안내문구 생성#1159
Browse files Browse the repository at this point in the history
  • Loading branch information
Junho jeon authored and Junho jeon committed Dec 18, 2023
1 parent e27bb20 commit 40abe95
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions pages/tournament.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,15 @@ export default function Tournament() {
<h1 className={styles.title}>Tournament</h1>
<div className={styles.tournamentContainer}>
<div className={styles.tournamentText}> 예정된 토너먼트 </div>
{waitInfo.data?.tournaments.map((tournament) => (
<div className={styles.cardContainer} key={tournament.tournamentId}>
<TournamentCard key={tournament.tournamentId} {...tournament} />
</div>
))}
{waitInfo.data?.tournaments.length === 0 ? (
<h4 className={styles.tournamentText}>예정된 토너먼트가 없습니다.</h4>
) : (
waitInfo.data?.tournaments.map((tournament) => (
<div className={styles.cardContainer} key={tournament.tournamentId}>
<TournamentCard key={tournament.tournamentId} {...tournament} />
</div>
))
)}
<div className={styles.tournamentText}> 진행중인 토너먼트 </div>
<div className={styles.openTournamentBox} ref={containerRef}>
{openInfo.data && openInfo.data.tournaments?.length === 0 ? (
Expand Down

0 comments on commit 40abe95

Please sign in to comment.