X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Frounds%2FItem.js;h=33394f4140f5873bb2c00d4a4100501796e0e3e0;hb=d1f28ea443b090c7593791eba9631796ccaeafe1;hp=78e3d1fd9b65d5e58300fc27da19729dc5ca8bf8;hpb=a90987ef670ed4c4de7d4191821e6c863342577d;p=alttp.git diff --git a/resources/js/components/rounds/Item.js b/resources/js/components/rounds/Item.js index 78e3d1f..33394f4 100644 --- a/resources/js/components/rounds/Item.js +++ b/resources/js/components/rounds/Item.js @@ -2,6 +2,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import { withTranslation } from 'react-i18next'; +import LockButton from './LockButton'; import SeedButton from './SeedButton'; import SeedCode from './SeedCode'; import List from '../results/List'; @@ -24,14 +25,17 @@ const Item = ({

{round.code ? - + <> + + {' '} + : null}

- {isParticipant(user, tournament) ? + {!round.locked && isParticipant(user, tournament) ?

: null} + ; @@ -48,6 +53,7 @@ Item.propTypes = { round: PropTypes.shape({ code: PropTypes.arrayOf(PropTypes.string), created_at: PropTypes.string, + locked: PropTypes.bool, number: PropTypes.number, seed: PropTypes.string, }),