From bbfe76890b172576027889c275891c24c5535633 Mon Sep 17 00:00:00 2001 From: Roland Date: Wed, 22 Nov 2023 12:19:49 -0700 Subject: [PATCH] Converting Search Suggetions to a Context. Search estimates is removed and suggestions is used instead. --- app/src/App.js | 45 ++++++------- app/src/DashboardPage.js | 8 +-- app/src/api.js | 16 ----- app/src/components/Archive.js | 8 +-- app/src/components/Channels.js | 17 +++-- app/src/components/Common.js | 2 +- app/src/components/Search.js | 112 +++++++++++++++------------------ app/src/components/Videos.js | 2 +- app/src/components/Zim.js | 11 ++-- app/src/hooks/customHooks.js | 4 +- modules/zim/test/test_api.py | 25 -------- wrolpi/root_api.py | 39 ------------ wrolpi/test/test_root_api.py | 20 ------ 13 files changed, 101 insertions(+), 208 deletions(-) diff --git a/app/src/App.js b/app/src/App.js index 7ca3ba5e..b0fd943c 100644 --- a/app/src/App.js +++ b/app/src/App.js @@ -21,6 +21,7 @@ import {SemanticToastContainer} from "react-semantic-toasts-2"; import {FilePreviewProvider} from "./components/FilePreview"; import {TagsProvider} from "./Tags"; import {ZimRoute} from "./components/Zim"; +import {SearchSuggestionsProvider} from "./components/Search"; function PageNotFound() { const {t} = useContext(ThemeContext); @@ -61,13 +62,19 @@ function HelpPage() { } function Root() { - return <> -
- -
- -