From fc7af76cfeb397f34f3df48df79bb5570ff744f5 Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Sat, 26 Aug 2023 19:39:49 +0300 Subject: [PATCH] Refactor navigation and library search --- rsconcept/frontend/src/components/Footer.tsx | 3 +- .../src/components/Help/HelpLibrary.tsx | 23 ++++-- .../src/components/Navigation/Logo.tsx | 4 +- .../src/components/Navigation/Navigation.tsx | 28 +++++--- .../Navigation/NavigationButton.tsx | 11 ++- .../src/components/Navigation/TopSearch.tsx | 41 ----------- .../src/components/Navigation/UserMenu.tsx | 4 +- .../src/components/Navigation/UserTools.tsx | 46 ------------ .../frontend/src/context/NavSearchContext.tsx | 38 ---------- .../frontend/src/context/RSFormContext.tsx | 6 +- .../frontend/src/context/ThemeContext.tsx | 4 +- rsconcept/frontend/src/index.css | 6 +- rsconcept/frontend/src/main.tsx | 3 - .../src/pages/LibraryPage/SearchPanel.tsx | 70 +++++++++++++++++++ .../src/pages/LibraryPage/ViewLibrary.tsx | 37 ++++++++-- .../frontend/src/pages/LibraryPage/index.tsx | 38 ++++------ .../src/pages/RSFormPage/EditorTermGraph.tsx | 4 +- 17 files changed, 174 insertions(+), 192 deletions(-) delete mode 100644 rsconcept/frontend/src/components/Navigation/TopSearch.tsx delete mode 100644 rsconcept/frontend/src/components/Navigation/UserTools.tsx delete mode 100644 rsconcept/frontend/src/context/NavSearchContext.tsx create mode 100644 rsconcept/frontend/src/pages/LibraryPage/SearchPanel.tsx diff --git a/rsconcept/frontend/src/components/Footer.tsx b/rsconcept/frontend/src/components/Footer.tsx index 042286dc..c476ba77 100644 --- a/rsconcept/frontend/src/components/Footer.tsx +++ b/rsconcept/frontend/src/components/Footer.tsx @@ -7,9 +7,8 @@ function Footer() {