Shared: fix eslint errors

This commit is contained in:
Timofey Boyko 2024-03-21 18:04:19 +03:00
parent bdd99efe66
commit 7d22ea855e
5 changed files with 11 additions and 3 deletions

View File

@ -67,6 +67,7 @@ export interface ArticleZendeskProps {
zendeskKey: string;
showProgress: boolean;
isShowLiveChat: boolean;
isInfoPanelVisible?: boolean;
}
export interface ArticleAppsProps {

View File

@ -75,7 +75,13 @@ const ArticleLiveChat = ({
vertical: "11px",
},
});
}, [withMainButton, isMobileArticle, showProgress, isInfoPanelVisible]);
}, [
withMainButton,
isMobileArticle,
showProgress,
isInfoPanelVisible,
infoPanelOffset,
]);
useEffect(() => {
// console.log("Zendesk useEffect", { languageBaseName });

View File

@ -28,7 +28,6 @@
import React from "react";
import { Navigate, useLocation } from "react-router-dom";
import Error403 from "@docspace/shared/components/errors/Error403";
import AppLoader from "@docspace/shared/components/app-loader";
import { TenantStatus } from "@docspace/shared/enums";
@ -70,7 +69,7 @@ export const PrivateRoute = (props: PrivateRouteProps) => {
return null;
}
console.log("PrivateRoute returned null");
// console.log("PrivateRoute returned null");
return null;
}

View File

@ -17,6 +17,7 @@
"selectors",
"store",
"dialogs",
"pages",
// add all files in which you see
// the "parserOptions.project" error
".eslintrc.cjs",

View File

@ -1,3 +1,4 @@
/* eslint-disable no-console */
// (c) Copyright Ascensio System SIA 2009-2024
//
// This program is a free software product.