Skip to content
Snippets Groups Projects
Unverified Commit 354dfa19 authored by Tomasz Knapik's avatar Tomasz Knapik
Browse files

Add no results found message to the listing

parent 1bb8c887
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,8 @@ export default class Listing extends React.Component {
return <ListingItem title={"Loading..."} />;
} else if (this.props.isError) {
return <ListingItem title={"Something went wrong. Please try again later."} />;
} else if (this.props.items.length === 0) {
return <ListingItem title={"No results found."} />;
}
const listItems = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment