X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Ftournament%2FDetail.js;h=3ce0b48998987405626aa82bf5de8244f63ab28f;hb=521a24ff68a2b077a19c3c499143db5fa9203be0;hp=1dae1b31ba52d720fe2e59c72ce594bdbbece960;hpb=1c3b922ba7143a548c8a7526f5e4384f336e2f1e;p=alttp.git 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 = {