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

View File

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