]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/applications/List.js
application admin UI
[alttp.git] / resources / js / components / applications / List.js
1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { ListGroup } from 'react-bootstrap';
4
5 import Item from './Item';
6
7 const List = ({ tournament }) =>
8 <ListGroup variant="flush">
9         {tournament.applications.map(application =>
10                 <Item application={application} key={application.id} tournament={tournament} />
11         )}
12 </ListGroup>;
13
14 List.propTypes = {
15         tournament: PropTypes.shape({
16                 applications: PropTypes.arrayOf(PropTypes.shape({
17                 })),
18         }),
19 };
20
21 export default List;