Shared:Components:Article: return part of article body and delete useless console log
This commit is contained in:
parent
4aaf55dcb0
commit
0987d0785f
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user