From 6394396beeedb93002fa539a4c5722fac02b139d Mon Sep 17 00:00:00 2001 From: IRBorisov <8611739+IRBorisov@users.noreply.github.com> Date: Thu, 3 Aug 2023 17:34:55 +0300 Subject: [PATCH] Fix scroll position --- rsconcept/frontend/src/App.tsx | 7 ++++++- .../frontend/src/components/Navigation/Navigation.tsx | 2 +- rsconcept/frontend/src/pages/RSFormPage/EditorItems.tsx | 2 +- .../frontend/src/pages/RSFormPage/EditorTermGraph.tsx | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/rsconcept/frontend/src/App.tsx b/rsconcept/frontend/src/App.tsx index ab78ed49..9c702e2c 100644 --- a/rsconcept/frontend/src/App.tsx +++ b/rsconcept/frontend/src/App.tsx @@ -3,6 +3,7 @@ import { Route, Routes } from 'react-router-dom'; import Footer from './components/Footer'; import Navigation from './components/Navigation/Navigation'; import ToasterThemed from './components/ToasterThemed'; +import { useConceptTheme } from './context/ThemeContext'; import CreateRSFormPage from './pages/CreateRSFormPage'; import HomePage from './pages/HomePage'; import LibraryPage from './pages/LibraryPage'; @@ -15,6 +16,8 @@ import RSFormPage from './pages/RSFormPage'; import UserProfilePage from './pages/UserProfilePage'; function App () { + const { noNavigation } = useConceptTheme(); + return (