No results message

This commit is contained in:
Edin Dazdarevic
2017-04-06 02:16:33 +02:00
parent 395444b67e
commit d8263f7b0e
2 changed files with 30 additions and 0 deletions

View File

@@ -23,6 +23,15 @@ export default class Listings extends React.Component {
renderListings () {
const {listings = (new Map())} = this.props;
if (listings.size === 0) {
return (<div className="listings-no-results">
<h4>Nema rezultata</h4>
<h5>
Nema oglasa koji ispunjavaju vaše uslove pretrage.
</h5>
</div>)
}
const rendered = [];
for(const l of listings.values()) {