From 880e0be5e982ecd4dd3f29c12a67ed889a4be489 Mon Sep 17 00:00:00 2001 From: xomimishka Date: Tue, 15 Apr 2025 16:42:21 +0300 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B1=D1=80=D0=B0=D0=BB=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=BD=D1=83=D0=B6=D0=BD=D0=BE=D0=B5=20=D0=B8=D0=B7=20roo?= =?UTF-8?q?t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/Layout/Root.tsx | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) 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 (
- -
- -
-
-
+ +
+ +
+