From 18d6582466842a7a7aacc4c19a7d363ba6e3d0f6 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Mon, 16 Sep 2019 12:18:01 -0700 Subject: [PATCH] SearchResults: Add row and header roles --- ts/components/SearchResults.tsx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/ts/components/SearchResults.tsx b/ts/components/SearchResults.tsx index 9239540279d2..2e57d0a766d7 100644 --- a/ts/components/SearchResults.tsx +++ b/ts/components/SearchResults.tsx @@ -126,7 +126,11 @@ export class SearchResults extends React.Component { ); } else if (row.type === 'conversations-header') { return ( -
+
{i18n('conversationsHeader')}
); @@ -143,7 +147,11 @@ export class SearchResults extends React.Component { ); } else if (row.type === 'contacts-header') { return ( -
+
{i18n('contactsHeader')}
); @@ -160,7 +168,11 @@ export class SearchResults extends React.Component { ); } else if (row.type === 'messages-header') { return ( -
+
{i18n('messagesHeader')}
); @@ -192,7 +204,7 @@ export class SearchResults extends React.Component { const row = items[index]; return ( -
+