From a38624fd5bca04922f3953839547712ca9e86e18 Mon Sep 17 00:00:00 2001 From: Jonny Date: Fri, 3 May 2019 01:07:50 +0200 Subject: [PATCH] Adjust style of the tournament information view --- js/components/TournamentInformationView.js | 68 +++++++++------------- 1 file changed, 29 insertions(+), 39 deletions(-) diff --git a/js/components/TournamentInformationView.js b/js/components/TournamentInformationView.js index 3d6622b..99c465c 100644 --- a/js/components/TournamentInformationView.js +++ b/js/components/TournamentInformationView.js @@ -6,7 +6,8 @@ import { Col, Container, ListGroup, - ListGroupItem + ListGroupItem, + Row } from 'reactstrap'; @@ -17,22 +18,27 @@ class PrivateTournamentInformationView extends React.Component { return ( - - - -

{tournament.description}

- - - {tournament.isPublic ? 'Das Turnier ist öffentlich.' : 'Das Turnier ist privat.'} - - Turnier-Code: {tournament.code} - von {tournament.owner_username} - + + + +

{tournament.description}

+ + + + + {tournament.isPublic ? 'Das Turnier ist öffentlich.' : 'Das Turnier ist privat.'} + + Turnier-Code: {tournament.code} + von {tournament.owner_username} + + +
); } @@ -53,21 +59,21 @@ function ButtonsBadge(props) { switch(currentpage) { case 'statistics': return ( - + ); case 'tournament': return ( - + ); case 'edit': return ( - + @@ -78,7 +84,7 @@ function ButtonsBadge(props) { function TournamentButton(props) { const { id } = props; - return ; + return ; } function EditButton(props) { @@ -86,7 +92,7 @@ function EditButton(props) { if(isSignedIn && ownerName === username) { return ( - + ); } else { return null; @@ -95,22 +101,6 @@ function EditButton(props) { function StatisticsButton(props) { const { id } = props; - return ; + return ; } - - -/* - - -

{description}

- - - {isPublic ? 'Das Turnier ist öffentlich.' : 'Das Turnier ist privat.'} - - Turnier-Code: {code} - von {ownerUsername} - -
- -*/