From ce889f2d3b8caf10728e99e889b69d523c8e35f8 Mon Sep 17 00:00:00 2001 From: btzr-io Date: Tue, 26 Sep 2017 00:45:49 -0600 Subject: [PATCH] add more focus on search remove icon duplication minor ux / ui fix --- ui/js/selectors/navigation.js | 9 ++++----- ui/js/selectors/search.js | 5 ++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/ui/js/selectors/navigation.js b/ui/js/selectors/navigation.js index b5eb98ade..40e3609f8 100644 --- a/ui/js/selectors/navigation.js +++ b/ui/js/selectors/navigation.js @@ -95,10 +95,6 @@ export const selectPageTitle = createSelector( return __("Help"); case "developer": return __("Developer"); - case "search": - return params.query - ? __("Search results for %s", params.query) - : __("Search"); case "show": { const parts = [lbryuri.normalize(params.uri)]; // If the params has any keys other than "uri" @@ -112,7 +108,10 @@ export const selectPageTitle = createSelector( case "published": return __("Publishes"); case "discover": - return __("Home"); + case "search": + return params.query + ? __("Search results for %s", params.query) + : __("Search"); case false: case null: case "": diff --git a/ui/js/selectors/search.js b/ui/js/selectors/search.js index 9b967d66e..5c1d70489 100644 --- a/ui/js/selectors/search.js +++ b/ui/js/selectors/search.js @@ -48,8 +48,6 @@ export const selectWunderBarIcon = createSelector( switch (page) { case "auth": return "icon-user"; - case "search": - return "icon-search"; case "settings": return "icon-gear"; case "help": @@ -81,7 +79,8 @@ export const selectWunderBarIcon = createSelector( case "developer": return "icon-code"; case "discover": - return "icon-home"; + case "search": + return "icon-search"; default: return "icon-file"; }