From e1609eb30799c0ec7c83dfcb6e397c722b4cf389 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Fri, 3 Feb 2017 17:19:49 +0300 Subject: [PATCH] show no result --- src/search-results.js | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/search-results.js b/src/search-results.js index 626f197..5990803 100644 --- a/src/search-results.js +++ b/src/search-results.js @@ -84,6 +84,48 @@ export default class SearchResults extends Component { : null } + { + this.props.torrentsSearchResults && this.props.torrentsSearchResults.length == 0 + && this.props.filesSearchResults && this.props.filesSearchResults.length == 0 + ? +
+ + + + + + +
no torrents for this search request were found
+
+ : + null + } ); }