[ARVADOS-WORKBENCH2] updated: 1.2.0-570-g21ad1a1

Git user git at public.curoverse.com
Tue Oct 9 06:47:49 EDT 2018


Summary of changes:
 .../search-bar/search-bar-autocomplete-view.tsx         | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

       via  21ad1a1cff07ec6e59db3b278fbc580cb5866c7a (commit)
      from  df9ea1569dd0d4ae1c05bacc8a5e5f7695f4453b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 21ad1a1cff07ec6e59db3b278fbc580cb5866c7a
Author: Janicki Artur <artur.janicki at contractors.roche.com>
Date:   Tue Oct 9 12:47:39 2018 +0200

    clean code
    
    Feature #14307
    
    Arvados-DCO-1.1-Signed-off-by: Janicki Artur <artur.janicki at contractors.roche.com>

diff --git a/src/views-components/search-bar/search-bar-autocomplete-view.tsx b/src/views-components/search-bar/search-bar-autocomplete-view.tsx
index 30da9a4..c4b2457 100644
--- a/src/views-components/search-bar/search-bar-autocomplete-view.tsx
+++ b/src/views-components/search-bar/search-bar-autocomplete-view.tsx
@@ -11,13 +11,11 @@ import Highlighter from "react-highlight-words";
 
 type CssRules = 'list';
 
-const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => {
-    return {
-        list: {
-            padding: '0px'
-        }
-    };
-};
+const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
+    list: {
+        padding: 0
+    }
+});
 
 export interface SearchBarAutocompleteViewDataProps {
     searchResults?: GroupContentsResource[];
@@ -38,8 +36,5 @@ export const SearchBarAutocompleteView = withStyles(styles)(
 );
 
 const getFormattedText = (textToHighlight: string, searchString = '') => {
-    return <Highlighter
-                searchWords={[searchString]}
-                autoEscape={true}
-                textToHighlight={textToHighlight} />;
+    return <Highlighter searchWords={[searchString]} autoEscape={true} textToHighlight={textToHighlight} />;
 };
\ No newline at end of file

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list