From 7ee78d4f4019cebffb73ae28e282409b05b087ea Mon Sep 17 00:00:00 2001 From: Marjan Kalanaki Date: Tue, 12 Aug 2025 17:54:31 +0100 Subject: [PATCH] add discussion to gallery --- .../src/layouts/GalleryLayout.tsx | 36 ++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/dotcom-rendering/src/layouts/GalleryLayout.tsx b/dotcom-rendering/src/layouts/GalleryLayout.tsx index 3debef0ce33..e184c9cac50 100644 --- a/dotcom-rendering/src/layouts/GalleryLayout.tsx +++ b/dotcom-rendering/src/layouts/GalleryLayout.tsx @@ -16,6 +16,7 @@ import { ArticleMetaApps } from '../components/ArticleMeta.apps'; import { ArticleMeta } from '../components/ArticleMeta.web'; import { ArticleTitle } from '../components/ArticleTitle'; import { Caption } from '../components/Caption'; +import { DiscussionLayout } from '../components/DiscussionLayout'; import { Footer } from '../components/Footer'; import { DesktopAdSlot, MobileAdSlot } from '../components/GalleryAdSlots'; import { GalleryImage } from '../components/GalleryImage'; @@ -172,6 +173,9 @@ export const GalleryLayout = (props: WebProps | AppProps) => { const contributionsServiceUrl = getContributionsServiceUrl(frontendData); + const showComments = + frontendData.isCommentable && !frontendData.config.isPaidContent; + return ( <> {isWeb && ( @@ -361,7 +365,7 @@ export const GalleryLayout = (props: WebProps | AppProps) => { ); })} - ; + { /> )} + {/** More Galleries container goes here */} + {showComments && ( +
+ +
+ )} {/** Most Popular container goes here */} {isWeb && renderAds && !isLabs && (