X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Frounds%2FItem.js;h=d8fe9d8b1ccc88983b2f843c712481fbffe260b3;hb=09c1644b5f64d7423905ae1be8f79da0b482289a;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..d8fe9d8 100644 --- a/resources/js/components/rounds/Item.js +++ b/resources/js/components/rounds/Item.js @@ -1,8 +1,9 @@ import PropTypes from 'prop-types'; import React from 'react'; -import { Button } from 'react-bootstrap'; import { withTranslation } from 'react-i18next'; +import SeedButton from './SeedButton'; +import SeedCode from './SeedCode'; import List from '../results/List'; import ReportButton from '../results/ReportButton'; import { isParticipant } from '../../helpers/permissions'; @@ -17,15 +18,23 @@ const Item = ({ }) =>
  • -

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

    - {round.seed ? -

    - -

    - : null} - {isParticipant(user, tournament) ? +

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

    +

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

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