]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/components/rounds/Item.js
option to hide round numbers
[alttp.git] / resources / js / components / rounds / Item.js
index 949eeb2f2ec910e99b94ba9bf0a01c67a5549ba3..0ef77c5d2c5ce6b9bec1c8798ddba6c184b43a77 100644 (file)
@@ -48,7 +48,7 @@ return <li className={getClassName(round, tournament, user)}>
                <div className="d-flex">
                        <div className="info">
                                <p className="date">
-                                       {round.number ? `#${round.number} ` : '#?'}
+                                       {tournament.show_numbers && round.number ? `#${round.number} ` : ''}
                                        {t('rounds.date', { date: new Date(round.created_at) })}
                                </p>
                                <p className="seed">
@@ -104,6 +104,7 @@ Item.propTypes = {
        tournament: PropTypes.shape({
                participants: PropTypes.arrayOf(PropTypes.shape({
                })),
+               show_numbers: PropTypes.bool,
                type: PropTypes.string,
        }),
 };