]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/tournament/Detail.js
limits for huge tournaments
[alttp.git] / resources / js / components / tournament / Detail.js
index 84592f6beb1a525a5f2886cf6661600ad2c975ec..318e67757d395fdc2dce9507dfe955d875e14802 100644 (file)
@@ -42,6 +42,7 @@ const getClassName = (tournament, user) => {
 
 const Detail = ({
        addRound,
+       moreRounds,
        tournament,
 }) => {
        const { t } = useTranslation();
@@ -111,7 +112,11 @@ const Detail = ({
                                        : null}
                                </div>
                                {tournament.rounds ?
-                                       <Rounds rounds={tournament.rounds} tournament={tournament} />
+                                       <Rounds
+                                               loadMore={moreRounds}
+                                               rounds={tournament.rounds}
+                                               tournament={tournament}
+                                       />
                                : null}
                        </Col>
                </Row>
@@ -120,6 +125,7 @@ const Detail = ({
 
 Detail.propTypes = {
        addRound: PropTypes.func,
+       moreRounds: PropTypes.func,
        tournament: PropTypes.shape({
                id: PropTypes.number,
                participants: PropTypes.arrayOf(PropTypes.shape({