Merge pull request #265 from ONLYOFFICE/bugfix/article-error

Shared:Components:Article: add logs for detect 130 error and hide par…
This commit is contained in:
Ilya Oleshko 2024-02-15 14:15:27 +03:00 committed by GitHub
commit f6982f698c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 3 deletions

View File

@ -32,6 +32,8 @@ ArticleMainButton.displayName = MAIN_BUTTON_NAME;
const ArticleBody = ({ children }: { children: React.ReactNode }) => null;
ArticleBody.displayName = BODY_NAME;
console.log(SubArticleBody);
const Article = ({
showText,
setShowText,
@ -239,6 +241,8 @@ const Article = ({
!window.location.pathname.includes("management") &&
isAdmin;
console.log(withDevTools, hideAppsBlock, isLiveChatAvailable);
const articleComponent = (
<>
<StyledArticle
@ -271,7 +275,7 @@ const Article = ({
<SubArticleBody>
{articleBodyContent ? articleBodyContent.props.children : null}
{!showArticleLoader && (
{/* {!showArticleLoader && (
<>
{!hideAlerts && (
<ArticleAlerts
@ -304,7 +308,7 @@ const Article = ({
{!hideAppsBlock && (
<ArticleApps withDevTools={withDevTools} showText={showText} />
)}
{!isMobile && isLiveChatAvailable && (
{!isMobile && !isLiveChatAvailable && (
<ArticleLiveChat
currentColorScheme={currentColorScheme}
withMainButton={
@ -319,7 +323,7 @@ const Article = ({
/>
)}
</>
)}
)} */}
</SubArticleBody>
{!showArticleLoader && (
<HideArticleMenuButton

View File

@ -1,6 +1,8 @@
import React from "react";
import { Scrollbar } from "../../scrollbar";
console.log(Scrollbar);
const ArticleBody = ({ children }: { children: React.ReactNode }) => {
return (
<Scrollbar