diff --git a/src/app/Layout/Root.tsx b/src/app/Layout/Root.tsx index b3c7396..8f645ec 100644 --- a/src/app/Layout/Root.tsx +++ b/src/app/Layout/Root.tsx @@ -71,30 +71,15 @@ function Root() { // Определяем, находимся ли мы на главной странице const isHomePage = location.pathname === "/"; - useEffect(() => { - const rootElement = document.getElementById("root"); - - if (!rootElement) return; - - if (location.pathname === "/") { - rootElement.classList.add("main-page"); - rootElement.classList.remove("inner-page"); - } else { - rootElement.classList.remove("main-page"); - rootElement.classList.add("inner-page"); - } - }, [location.pathname]); - - return (
- -
- -
-
-
+ +
+ +
+