From 521a24ff68a2b077a19c3c499143db5fa9203be0 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Tue, 15 Mar 2022 21:22:32 +0100 Subject: [PATCH] push scoreboard to the side --- resources/js/components/tournament/Detail.js | 60 ++++++++++++-------- 1 file changed, 35 insertions(+), 25 deletions(-) diff --git a/resources/js/components/tournament/Detail.js b/resources/js/components/tournament/Detail.js index 1dae1b3..3ce0b48 100644 --- a/resources/js/components/tournament/Detail.js +++ b/resources/js/components/tournament/Detail.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; import React from 'react'; -import { Button, Container } from 'react-bootstrap'; +import { Button, Col, Container, Row } from 'react-bootstrap'; import { withTranslation } from 'react-i18next'; import Scoreboard from './Scoreboard'; @@ -17,30 +17,40 @@ const Detail = ({ addRound, tournament, user, -}) => -
-

{tournament.title}

- {mayViewProtocol(user, tournament) ? - - : null} -
-
-

{i18n.t('tournaments.scoreboard')}

-
- {tournament.participants ? - - : null} -
-

{i18n.t('rounds.heading')}

- {addRound && mayAddRounds(user, tournament) ? - - : null} -
- {tournament.rounds ? - - : null} +}) => + + +
+

{tournament.title}

+ {mayViewProtocol(user, tournament) ? + + : null} +
+ +
+ + +
+

{i18n.t('rounds.heading')}

+ {addRound && mayAddRounds(user, tournament) ? + + : null} +
+ {tournament.rounds ? + + : null} + + +
+

{i18n.t('tournaments.scoreboard')}

+
+ {tournament.participants ? + + : null} + +
; Detail.propTypes = { -- 2.39.2