]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/rounds/Item.js
lock rounds
[alttp.git] / resources / js / components / rounds / Item.js
index 78e3d1fd9b65d5e58300fc27da19729dc5ca8bf8..d8fe9d8b1ccc88983b2f843c712481fbffe260b3 100644 (file)
@@ -24,14 +24,17 @@ const Item = ({
                </p>
                <p className="seed">
                        {round.code ?
-                               <SeedCode code={round.code} />
+                               <>
+                                       <SeedCode code={round.code} />
+                                       {' '}
+                               </>
                        : null}
                        <SeedButton
                                round={round}
                                tournament={tournament}
                        />
                </p>
-               {isParticipant(user, tournament) ?
+               {!round.locked && isParticipant(user, tournament) ?
                        <p className="report">
                                <ReportButton
                                        participant={findParticipant(tournament, user)}
@@ -48,6 +51,7 @@ Item.propTypes = {
        round: PropTypes.shape({
                code: PropTypes.arrayOf(PropTypes.string),
                created_at: PropTypes.string,
+               locked: PropTypes.bool,
                number: PropTypes.number,
                seed: PropTypes.string,
        }),