From 13e3fb4626d27c911c35a321ce850a1f4452d673 Mon Sep 17 00:00:00 2001 From: Viktor Fomin Date: Mon, 25 Jul 2022 23:03:05 +0300 Subject: [PATCH] Web: Client: Main: delete useless --- .../src/components/Main/index.js | 24 +++---------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/web/ASC.Web.Client/src/components/Main/index.js b/web/ASC.Web.Client/src/components/Main/index.js index 5f0997976a..99943eff7f 100644 --- a/web/ASC.Web.Client/src/components/Main/index.js +++ b/web/ASC.Web.Client/src/components/Main/index.js @@ -1,12 +1,6 @@ -import React, { useEffect } from "react"; +import React from "react"; import styled, { css } from "styled-components"; -import { - isIOS, - isFirefox, - isSafari, - isMobile, - isMobileOnly, -} from "react-device-detect"; +import { isIOS, isFirefox, isMobileOnly } from "react-device-detect"; const StyledMain = styled.main` height: ${isIOS && !isFirefox ? "calc(var(--vh, 1vh) * 100)" : "100vh"}; @@ -42,19 +36,7 @@ const Main = React.memo((props) => { //console.log("Main render"); - useEffect(() => { - if (window.location.pathname.includes("confirm")) { - document - .getElementById("main-layout") - .classList.add("with-background-pattern"); - } else { - document - .getElementById("main-layout") - .classList.remove("with-background-pattern"); - } - }, []); - - return ; + return ; }); /*Main.defaultProps = {