]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/tournament/Detail.js
tournament application
[alttp.git] / resources / js / components / tournament / Detail.js
index b6afe902c5b3acc5fb0210424728e3a099602ab9..b20f2082c36ca2273584f55a1cb6890c194801fc 100644 (file)
@@ -3,6 +3,7 @@ import React from 'react';
 import { Button, Col, Container, Row } from 'react-bootstrap';
 import { withTranslation } from 'react-i18next';
 
+import ApplyButton from './ApplyButton';
 import Scoreboard from './Scoreboard';
 import Protocol from '../protocol/Protocol';
 import Rounds from '../rounds/List';
@@ -44,9 +45,12 @@ const Detail = ({
                <Col lg={8} xl={9}>
                        <div className="d-flex align-items-center justify-content-between">
                                <h1>{tournament.title}</h1>
-                               {mayViewProtocol(user, tournament) ?
-                                       <Protocol id={tournament.id} />
-                               : null}
+                               <div className="button-bar">
+                                       <ApplyButton tournament={tournament} />
+                                       {mayViewProtocol(user, tournament) ?
+                                               <Protocol id={tournament.id} />
+                                       : null}
+                               </div>
                        </div>
                </Col>
        </Row>