From 9323b456bfb51a0b3e2333d77756035037ae3163 Mon Sep 17 00:00:00 2001
From: Dalton <dalton.hill2022@gmail.com>
Date: Sun, 19 Jan 2020 01:06:44 -0600
Subject: [PATCH] fixes #3507 by adding 'no results' text to channel search if
 no results are returned from search

search results now have same style as default content

used ClaimList instead of copying code

addressing pr comments
---
 ui/page/channel/view.jsx | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/ui/page/channel/view.jsx b/ui/page/channel/view.jsx
index 0bcea4d8f..786e6b73f 100644
--- a/ui/page/channel/view.jsx
+++ b/ui/page/channel/view.jsx
@@ -19,10 +19,10 @@ import * as ICONS from 'constants/icons';
 import classnames from 'classnames';
 import * as MODALS from 'constants/modal_types';
 import { Form, FormField } from 'component/common/form';
-import ClaimPreview from 'component/claimPreview';
 import Icon from 'component/common/icon';
 import HelpLink from 'component/common/help-link';
 import { DEBOUNCE_WAIT_DURATION_MS } from 'constants/search';
+import ClaimList from 'component/claimList';
 
 const PAGE_VIEW_QUERY = `view`;
 const ABOUT_PAGE = `about`;
@@ -250,7 +250,14 @@ function ChannelPage(props: Props) {
         <TabPanels>
           <TabPanel>
             {searchResults ? (
-              searchResults.map(url => <ClaimPreview key={url} uri={url} />)
+              <ClaimList
+                header={false}
+                headerAltControls={null}
+                id={`search-results-for-${claimId}`}
+                loading={false}
+                showHiddenByUser={false}
+                uris={searchResults}
+              />
             ) : (
               <ChannelContent uri={uri} channelIsBlackListed={channelIsBlackListed} />
             )}