Rework the search field behavior in the sidebar

We just tested it with another user an noticed some more issues:
* If the user is on the search route it should be reflected in the sidebar
* Clicking on the search icon alone should lead to the search page
This commit is contained in:
Oliver Sand
2020-11-20 16:20:13 +01:00
parent c587fa2089
commit 36b9dfd41c
2 changed files with 10 additions and 4 deletions
@@ -31,5 +31,5 @@ export const SidebarSearch = () => {
[navigate],
);
return <SidebarSearchField onSearch={handleSearch} />;
return <SidebarSearchField onSearch={handleSearch} to="/search" />;
};