X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Frounds%2FItem.js;h=d352cd126263fb49044157ff31b093a1c658609e;hb=d920d896d4357289112e31d3b33d386ab754a12d;hp=c4e337419df5b12e469b989b2b51ba750312fe86;hpb=d748feb96453d74aeffec648d6f5f68d9ef3b520;p=alttp.git diff --git a/resources/js/components/rounds/Item.js b/resources/js/components/rounds/Item.js index c4e3374..d352cd1 100644 --- a/resources/js/components/rounds/Item.js +++ b/resources/js/components/rounds/Item.js @@ -1,10 +1,12 @@ import PropTypes from 'prop-types'; import React from 'react'; +import { Button } from 'react-bootstrap'; import { withTranslation } from 'react-i18next'; +import SeedButton from './SeedButton'; import List from '../results/List'; import ReportButton from '../results/ReportButton'; -import { isParticipant } from '../../helpers/permissions'; +import { maySetSeed, isParticipant } from '../../helpers/permissions'; import { findParticipant } from '../../helpers/Tournament'; import { withUser } from '../../helpers/UserContext'; import i18n from '../../i18n'; @@ -17,12 +19,20 @@ const Item = ({
  • {i18n.t('rounds.date', { date: new Date(round.created_at) })}

    - {isParticipant(user, tournament) ? - + +

    + {isParticipant(user, tournament) ? +

    + +

    : null}
    @@ -31,6 +41,7 @@ const Item = ({ Item.propTypes = { round: PropTypes.shape({ created_at: PropTypes.string, + seed: PropTypes.string, }), tournament: PropTypes.shape({ participants: PropTypes.arrayOf(PropTypes.shape({