Shared:Components:Article: return part of article body and delete useless console log

This commit is contained in:
Timofey Boyko 2024-02-15 15:21:45 +03:00
parent 4aaf55dcb0
commit 0987d0785f
2 changed files with 7 additions and 11 deletions

View File

@ -32,7 +32,7 @@ ArticleMainButton.displayName = MAIN_BUTTON_NAME;
const ArticleBody = ({ children }: { children: React.ReactNode }) => null;
ArticleBody.displayName = BODY_NAME;
console.log(SubArticleBody);
console.log(ArticleAlerts, ArticleLiveChat);
const Article = ({
showText,
@ -241,8 +241,6 @@ const Article = ({
!window.location.pathname.includes("management") &&
isAdmin;
console.log(withDevTools, hideAppsBlock, isLiveChatAvailable);
const articleComponent = (
<>
<StyledArticle
@ -275,9 +273,9 @@ const Article = ({
<SubArticleBody>
{articleBodyContent ? articleBodyContent.props.children : null}
{/* {!showArticleLoader && (
{!showArticleLoader && (
<>
{!hideAlerts && (
{/* {!hideAlerts && (
<ArticleAlerts
articleAlertsData={articleAlertsData}
showText={showText}
@ -296,7 +294,7 @@ const Article = ({
setSubmitToGalleryDialogVisible
}
/>
)}
)} */}
{withDevTools && (
<ArticleDevToolsBar
articleOpen={articleOpen}
@ -308,7 +306,7 @@ const Article = ({
{!hideAppsBlock && (
<ArticleApps withDevTools={withDevTools} showText={showText} />
)}
{!isMobile && !isLiveChatAvailable && (
{/* {!isMobile && !isLiveChatAvailable && (
<ArticleLiveChat
currentColorScheme={currentColorScheme}
withMainButton={
@ -321,9 +319,9 @@ const Article = ({
zendeskKey={zendeskKey}
showProgress={showProgress}
/>
)}
</>
)} */}
</>
)}
</SubArticleBody>
{!showArticleLoader && (
<HideArticleMenuButton

View File

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