Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix] LIVE 상태인 토너먼트 모두 표시 #1239 #1240

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions pages/tournament.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,16 @@ export default function Tournament() {
진행중인 토너먼트가 없습니다.
</div>
) : (
data &&
data.liveTournament.length > 0 && (
data?.liveTournament.map((tournament) => (
<>
<TournamentCard
{...data.liveTournament[0]}
page='tournament/playing'
/>
<TournamentCard {...tournament} page='tournament/playing' />
<UserTournamentBraket
tournamentId={data.liveTournament[0].tournamentId}
tournamentId={tournament.tournamentId}
queryStaleTime={60 * 1000}
state={data.liveTournament[0].status}
state={tournament.status}
/>
</>
)
))
)}
</div>
);
Expand Down
1 change: 1 addition & 0 deletions styles/tournament/UserTournamentBracket.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
width: 100%;
height: 30rem;
margin-top: 1rem;
margin-bottom: 1.5rem;
overflow: hidden;
background-color: rgba(112, 0, 225, 0.17);
border: 1px solid #c67dff;
Expand Down