diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 7a67560..1157588 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -5319,26 +5319,47 @@ function TournamentStandings({ standings }) { ) } +function TournamentListSide({ side, navigate }) { + const [collapsed, setCollapsed] = useState(false) + return ( +
+ + {collapsed ? null : ( +
+ {side.columns.map((column) => ( +
+

{column.label}

+
+ {column.matches.map((match) => ( + + ))} +
+
+ ))} +
+ )} +
+ ) +} + function TournamentMatchList({ sides, navigate }) { return (
- {sides.map((side) => { - const matches = side.columns.flatMap((column) => column.matches) - return ( -
-

{side.label}

-
- {matches.map((match) => ( - - ))} -
-
- ) - })} + {sides.map((side) => ( + + ))}
) }