X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Frounds%2FItem.js;h=b227e9334798ffe89dae08775a3098458b47a8b1;hb=ccaa2cf99468fea81efdf28aaa3fc72a278a95f6;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..b227e93 100644 --- a/resources/js/components/rounds/Item.js +++ b/resources/js/components/rounds/Item.js @@ -1,5 +1,6 @@ import PropTypes from 'prop-types'; import React from 'react'; +import { Button } from 'react-bootstrap'; import { withTranslation } from 'react-i18next'; import List from '../results/List'; @@ -17,12 +18,21 @@ const Item = ({
  • {i18n.t('rounds.date', { date: new Date(round.created_at) })}

    + {round.seed ? +

    + +

    + : null} {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({