Skip to content

Commit

Permalink
Render the news letter subscription by default
Browse files Browse the repository at this point in the history
  • Loading branch information
arzljames committed Feb 2, 2024
1 parent a0bc9eb commit 90b5c33
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/components/marketing/PopupLeadCapture/PopUpForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ export default function PopUpForm({
/>
</Box>
<Button
id="gated-popup-modal"
variant="contained"
sx={{ width: '100%' }}
color="secondary"
Expand Down
22 changes: 13 additions & 9 deletions src/views/zesty/Article.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ function Article({ content }) {
setRelatedArticles(
getRelatedArticles(content?.related_articles, latestArticles),
);
console.log(content);
}, [latestArticles]);

const verifyPathnameInCookie = (path) => {
Expand Down Expand Up @@ -690,15 +691,18 @@ function Article({ content }) {
</Stack>
</ThemeProvider>

<Container position="relative" zIndex={3}>
<CtaWithInputField
title={'Subscribe to the zestiest newsletter in the industry'}
description={
'Get the latest from the Zesty team, from whitepapers to product updates.'
}
cta={'Subscribe'}
/>
</Container>
{(content?.enable_newsletter_subscription === null ||
content?.enable_newsletter_subscription === '1') && (
<Container position="relative" zIndex={3}>
<CtaWithInputField
title={'Subscribe to the zestiest newsletter in the industry'}
description={
'Get the latest from the Zesty team, from whitepapers to product updates.'
}
cta={'Subscribe'}
/>
</Container>
)}

{/* Side PopUp */}
{showPopup && <PopUpLeadCapture {...popupLeadCaptureProps} />}
Expand Down

0 comments on commit 90b5c33

Please sign in to comment.