X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Frounds%2FItem.js;h=b227e9334798ffe89dae08775a3098458b47a8b1;hb=ccaa2cf99468fea81efdf28aaa3fc72a278a95f6;hp=064c7dc992ead951105c661cd9dd861b3a557f69;hpb=edd0e97bfdc544114f30bf4c13a929631c44a555;p=alttp.git diff --git a/resources/js/components/rounds/Item.js b/resources/js/components/rounds/Item.js index 064c7dc..b227e93 100644 --- a/resources/js/components/rounds/Item.js +++ b/resources/js/components/rounds/Item.js @@ -1,13 +1,39 @@ import PropTypes from 'prop-types'; import React from 'react'; +import { Button } from 'react-bootstrap'; import { withTranslation } from 'react-i18next'; import List from '../results/List'; +import ReportButton from '../results/ReportButton'; +import { isParticipant } from '../../helpers/permissions'; +import { findParticipant } from '../../helpers/Tournament'; +import { withUser } from '../../helpers/UserContext'; import i18n from '../../i18n'; -const Item = ({ round, tournament }) =>
{i18n.t('rounds.date', { date: new Date(round.created_at) })}
+ {round.seed ? ++ +
+ : null} + {isParticipant(user, tournament) ? +
+