Fullscreen page: add message when there are no matches

This commit is contained in:
Felix Hamme 2019-11-08 18:19:53 +01:00
parent 9d3945a3a7
commit 66e9a2e1a5
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ function Matches(props) {
<Spinner animation='border' role='status' size='sm'/>
<span className='ml-3'>lade Matches</span>
</div>);
} else if (props.matches.length === 0) {
matches = (<div className='text-center text-secondary font-italic'>keine Matches</div>);
} else {
matches = (<Row>
{props.matches.map(match => <Col md='auto'><Match key={match.id} match={match}/></Col>)}