]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/rounds/Item.js
switch participant list to scoreboard
[alttp.git] / resources / js / components / rounds / Item.js
index d352cd126263fb49044157ff31b093a1c658609e..1832edb4c13bb5e08f90f1731f1866884ffcd452 100644 (file)
@@ -12,13 +12,17 @@ import { withUser } from '../../helpers/UserContext';
 import i18n from '../../i18n';
 
 const Item = ({
+       index,
        round,
        tournament,
        user,
 }) =>
 <li className="round d-flex">
        <div className="info">
-               <p className="date">{i18n.t('rounds.date', { date: new Date(round.created_at) })}</p>
+               <p className="date">
+                       {`#${index + 1} `}
+                       {i18n.t('rounds.date', { date: new Date(round.created_at) })}
+               </p>
                <p className="seed">
                        <SeedButton
                                round={round}
@@ -39,6 +43,7 @@ const Item = ({
 </li>;
 
 Item.propTypes = {
+       index: PropTypes.number,
        round: PropTypes.shape({
                created_at: PropTypes.string,
                seed: PropTypes.string,