Skip to content

Commit cf0df3c

Browse files
committed
moving the article design check outside of div for sindication button
1 parent 04ff8d2 commit cf0df3c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dotcom-rendering/src/components/SubMeta.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,11 @@ export const SubMeta = ({
146146
};
147147
};
148148
const { links, hasLinks } = createLinks();
149+
150+
const showSindicationButton =
151+
format.design !== ArticleDesign.Interactive &&
152+
format.design !== ArticleDesign.Gallery;
153+
149154
return (
150155
<div
151156
data-print-layout="hide"
@@ -193,8 +198,7 @@ export const SubMeta = ({
193198
/>
194199
</Island>
195200
<div css={syndicationButtonOverrides}>
196-
{format.design === ArticleDesign.Interactive ||
197-
format.design === ArticleDesign.Gallery ? null : (
201+
{showSindicationButton ? (
198202
<LinkButton
199203
priority="tertiary"
200204
size="xsmall"
@@ -219,7 +223,7 @@ export const SubMeta = ({
219223
>
220224
Reuse this content
221225
</LinkButton>
222-
)}
226+
) : null}
223227
</div>
224228
</div>
225229
)}

0 commit comments

Comments
 (0)