X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Fresults%2FList.js;h=3d1bdfa8f27c9ff0147832934ce81975a8bee2c0;hb=537b998e8059c56e3a20ee2a89d42c3bbfbb80b8;hp=14c70968cd5324823c558732df049e3a2fd715ea;hpb=3e970c52e6a46cf9db4f69c5bec9102da53c0744;p=alttp.git diff --git a/resources/js/components/results/List.js b/resources/js/components/results/List.js index 14c7096..3d1bdfa 100644 --- a/resources/js/components/results/List.js +++ b/resources/js/components/results/List.js @@ -8,6 +8,19 @@ import { getRunners } from '../../helpers/Tournament'; import { withUser } from '../../helpers/UserContext'; const List = ({ round, tournament, user }) => { + if (tournament.type === 'open-async') { + const results = round.results || []; + return
+ {results.map(result => + + )} +
; + } const runners = maySeeResults(user, tournament, round) ? sortByResult(getRunners(tournament), round) : sortByFinished(getRunners(tournament), round); @@ -15,9 +28,9 @@ const List = ({ round, tournament, user }) => { {runners.map(participant => )} ; @@ -25,10 +38,15 @@ const List = ({ round, tournament, user }) => { List.propTypes = { round: PropTypes.shape({ + results: PropTypes.arrayOf(PropTypes.shape({ + })), }), tournament: PropTypes.shape({ participants: PropTypes.arrayOf(PropTypes.shape({ })), + type: PropTypes.string, + users: PropTypes.arrayOf(PropTypes.shape({ + })), }), user: PropTypes.shape({ }),