From 66b8f9388565f4658b1d29d0ac309b5397c44dbe Mon Sep 17 00:00:00 2001 From: Tatiana Lopaeva Date: Fri, 16 Aug 2024 11:19:12 +0300 Subject: [PATCH] Refactoring. --- packages/client/src/components/MainBar/Bar.js | 7 ------- packages/client/src/components/MainBar/QuotasBar.js | 1 - 2 files changed, 8 deletions(-) diff --git a/packages/client/src/components/MainBar/Bar.js b/packages/client/src/components/MainBar/Bar.js index ad4195ede1..da93e3852b 100644 --- a/packages/client/src/components/MainBar/Bar.js +++ b/packages/client/src/components/MainBar/Bar.js @@ -126,13 +126,6 @@ const Bar = (props) => { } if (closed) { - if (isAdmin) { - setBarVisible((value) => ({ - ...value, - roomQuota: !closed.includes(QuotaBarTypes.RoomQuota), - })); - } - if (isAdmin || isRoomAdmin) { setBarVisible((value) => ({ ...value, diff --git a/packages/client/src/components/MainBar/QuotasBar.js b/packages/client/src/components/MainBar/QuotasBar.js index 94fb8febd0..e1ce941974 100644 --- a/packages/client/src/components/MainBar/QuotasBar.js +++ b/packages/client/src/components/MainBar/QuotasBar.js @@ -26,7 +26,6 @@ import React from "react"; import { withTranslation, Trans } from "react-i18next"; -import styled, { css } from "styled-components"; import { SnackBar } from "@docspace/shared/components/snackbar";