-
-
- {description}
-
-
- {isPublic ? 'Das Turnier ist öffentlich.' : 'Das Turnier ist privat.'}
-
- Turnier-Code: {code}
- von {ownerUsername}
-
-
+
{playoffStages.map(stage =>
-
-
-
- );
-}
-
-function EditButton(props) {
- const {id, ownerName, isSignedIn, username} = props;
-
- if(isSignedIn && ownerName === username) {
- return ();
- } else {
- return null;
- }
-}
-
-function StatisticsButton(props) {
- const { id } = props;
- return ;
-}
-
function getLevelName(levelNumber) {
const names = ['Finale', 'Halbfinale', 'Viertelfinale', 'Achtelfinale'];
if (levelNumber < names.length) {
@@ -153,7 +85,7 @@ function convertTournament(apiTournament) {
description: apiTournament.description,
name: apiTournament.name,
isPublic: apiTournament.public,
- ownerUsername: apiTournament.owner_username,
+ owner_username: apiTournament.owner_username,
groupStage: groupStage,
playoffStages: playoffStages
};