From 9b42b45cfbb11f975366fe44e3230ab22608e9a6 Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Sat, 15 Dec 2018 09:04:01 +0100 Subject: [PATCH] chore: set all to warning for easy development, temporary --- src/webui/components/AutoComplete/index.js | 16 +++--- src/webui/components/Footer/index.js | 16 +++--- src/webui/components/Header/index.js | 3 +- src/webui/components/Help/index.js | 10 ++-- src/webui/components/Icon/index.js | 6 +- src/webui/components/Label/index.js | 2 +- src/webui/components/Loading/index.js | 2 +- src/webui/components/Package/index.js | 3 +- src/webui/components/Readme/index.js | 2 +- .../components/RegistryInfoDialog/index.js | 56 +++++++++---------- src/webui/components/Tag/index.js | 4 +- src/webui/router.js | 6 +- 12 files changed, 60 insertions(+), 66 deletions(-) diff --git a/src/webui/components/AutoComplete/index.js b/src/webui/components/AutoComplete/index.js index 6b69a2eaa..917006d1a 100644 --- a/src/webui/components/AutoComplete/index.js +++ b/src/webui/components/AutoComplete/index.js @@ -43,11 +43,11 @@ const renderSuggestion = (suggestion, { query, isHighlighted }): Node => {
{parts.map((part, index) => { return part.highlight ? ( - + {part.text} ) : ( - + {part.text} ); @@ -100,7 +100,7 @@ const AutoComplete = ({ ( - + }} + onSuggestionSelected={onClick} + renderSuggestionsContainer={({ containerProps, children, query }) => ( + {suggestionsLoaded && children === null && query && renderMessage(SUGGESTIONS_RESPONSE.NO_RESULT)} {suggestionsLoading && query && renderMessage(SUGGESTIONS_RESPONSE.LOADING)} {suggestionsError && renderMessage(SUGGESTIONS_RESPONSE.FAILURE)} {children} - ) } + )} /> ); diff --git a/src/webui/components/Footer/index.js b/src/webui/components/Footer/index.js index cb2ae90d8..12d8da1f7 100644 --- a/src/webui/components/Footer/index.js +++ b/src/webui/components/Footer/index.js @@ -17,15 +17,15 @@ const Footer = (): Element => ( on - + - - - - - - - + + + + + + + diff --git a/src/webui/components/Header/index.js b/src/webui/components/Header/index.js index 0add4c7bf..ebf4c4e25 100644 --- a/src/webui/components/Header/index.js +++ b/src/webui/components/Header/index.js @@ -184,8 +184,7 @@ class Header extends Component { transformOrigin={{ vertical: 'top', horizontal: 'right', - }} - > + }}> {`Hi,`}