From 86c510a31fa5e279da49b834808c2a81c6782c74 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Fri, 27 May 2022 00:59:48 -0500 Subject: tidy up --- src/web/src/components/Search/List/SearchList.js | 50 +++++++++++------------- src/web/src/components/Search/Searches.js | 3 +- 2 files changed, 24 insertions(+), 29 deletions(-) (limited to 'src') diff --git a/src/web/src/components/Search/List/SearchList.js b/src/web/src/components/Search/List/SearchList.js index db16fa71..5a77149b 100644 --- a/src/web/src/components/Search/List/SearchList.js +++ b/src/web/src/components/Search/List/SearchList.js @@ -27,33 +27,29 @@ const SearchList = ({ connecting={connecting && } error={error && } > - - - - - - - Search - Files - Locked - Responses - Ended - - - - - {Object.values(searches) - .sort((a, b) => (new Date(b.startedAt) - new Date(a.startedAt))) - .map((search, index) => )} - -
-
-
+ + + + + Search + Files + Locked + Responses + Ended + + + + + {Object.values(searches) + .sort((a, b) => (new Date(b.startedAt) - new Date(a.startedAt))) + .map((search, index) => )} + +
diff --git a/src/web/src/components/Search/Searches.js b/src/web/src/components/Search/Searches.js index fdcda3ac..fb0ce027 100644 --- a/src/web/src/components/Search/Searches.js +++ b/src/web/src/components/Search/Searches.js @@ -91,8 +91,7 @@ const Searches = ({ server }) => { return () => { searchHub.stop(); }; - // eslint-disable-next-line react-hooks/exhaustive-deps - }, []); + }, []); // eslint-disable-line react-hooks/exhaustive-deps // create a new search, and optionally navigate to it to display the details // we do this if the user clicks the search icon, or repeats an existing search -- cgit v1.2.3