]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/results/List.js
basic result display
[alttp.git] / resources / js / components / results / List.js
1 import PropTypes from 'prop-types';
2 import React from 'react';
3
4 import Item from './Item';
5
6 const List = ({ round, tournament }) => <div className="results d-flex">
7         {tournament.participants.map(participant =>
8                 <Item
9                         key={participant.id}
10                         participant={participant}
11                         round={round}
12                         tournament={tournament}
13                 />
14         )}
15 </div>;
16
17 List.propTypes = {
18         round: PropTypes.shape({
19         }),
20         tournament: PropTypes.shape({
21                 participants: PropTypes.arrayOf(PropTypes.shape({
22                 })),
23         }),
24 };
25
26 export default List;