diff --git a/src/views/TournamentList/TournamentList.tsx b/src/views/TournamentList/TournamentList.tsx index 3b33131a39..9d24b9e347 100644 --- a/src/views/TournamentList/TournamentList.tsx +++ b/src/views/TournamentList/TournamentList.tsx @@ -171,87 +171,10 @@ export function TournamentListMainView(): JSX.Element { function MyTournaments(): JSX.Element { return ( -
- "name", - render: (tournament: rest_api.Tournament) => ( -
- - {tournament.group ? ( - - - - ) : ( - - )} - {tournament.name} -
- ), - }, - - { - header: _("When"), - className: "nobr", - render: (tournament) => - tournament.ended - ? when(tournament.started) + " - " + when(tournament.ended) - : tournament.started - ? when(tournament.started) - : when(tournament.time_start), - }, - { - header: _("Time Control"), - className: "nobr", - render: (tournament) => - shortShortTimeControl(tournament.time_control_parameters as any), - }, - { - header: _("Size"), - className: "nobr", - render: (tournament) => `${tournament.board_size}x${tournament.board_size}`, - }, - { - header: _("Players"), - className: "nobr", - render: (tournament) => tournament.player_count, - }, - { - header: _("Ranks"), - className: "nobr", - render: (tournament) => - shortRankRestrictionText( - tournament.min_ranking, - tournament.max_ranking, - ), - }, - ]} - /> -
+ ); } @@ -324,14 +247,32 @@ export function TournamentList(props: TournamentListProperties) { props.group, ); + return ( + + ); +} + +function TournamentListImpl({ + filter, + source, + orderBy, +}: { + filter?: Filter; + source: string; + orderBy: Array; +}): JSX.Element { return (
when(tournament.time_start), + render: (tournament) => + tournament.ended + ? when(tournament.started) + " - " + when(tournament.ended) + : tournament.started + ? when(tournament.started) + : when(tournament.time_start), }, { header: _("Time Control"),