X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=resources%2Fjs%2Fcomponents%2Frounds%2FList.js;h=5aa2a4c77eece85242122452edf11c6c7070c787;hb=481e603a0ca94bb068d1939c7feccfb07264b5a0;hp=2ac8f1701d9074094e705035c928f326dd5522f4;hpb=edd0e97bfdc544114f30bf4c13a929631c44a555;p=alttp.git diff --git a/resources/js/components/rounds/List.js b/resources/js/components/rounds/List.js index 2ac8f17..5aa2a4c 100644 --- a/resources/js/components/rounds/List.js +++ b/resources/js/components/rounds/List.js @@ -4,12 +4,14 @@ import { Alert } from 'react-bootstrap'; import { withTranslation } from 'react-i18next'; import Item from './Item'; +import LoadMore from './LoadMore'; import i18n from '../../i18n'; const List = ({ + loadMore, rounds, tournament, -}) => rounds && rounds.length ? +}) => rounds && rounds.length ? <>
    {rounds.map(round => )}
-: + {loadMore ? + + : null} + : {i18n.t('rounds.empty')} ; List.propTypes = { + loadMore: PropTypes.func, rounds: PropTypes.arrayOf(PropTypes.shape({ id: PropTypes.number, })),