X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Frounds%2FItem.js;h=1832edb4c13bb5e08f90f1731f1866884ffcd452;hb=8078d2d7e3363679874caaa571a1c138438c95e2;hp=b227e9334798ffe89dae08775a3098458b47a8b1;hpb=ccaa2cf99468fea81efdf28aaa3fc72a278a95f6;p=alttp.git diff --git a/resources/js/components/rounds/Item.js b/resources/js/components/rounds/Item.js index b227e93..1832edb 100644 --- a/resources/js/components/rounds/Item.js +++ b/resources/js/components/rounds/Item.js @@ -3,28 +3,32 @@ 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'; const Item = ({ + index, round, tournament, user, }) =>
  • -

    {i18n.t('rounds.date', { date: new Date(round.created_at) })}

    - {round.seed ? -

    - -

    - : null} +

    + {`#${index + 1} `} + {i18n.t('rounds.date', { date: new Date(round.created_at) })} +

    +

    + +

    {isParticipant(user, tournament) ?

    ; Item.propTypes = { + index: PropTypes.number, round: PropTypes.shape({ created_at: PropTypes.string, seed: PropTypes.string,