Skip to content

Commit

Permalink
Add dynamic links to the other videos on the Jetpack AI product page
Browse files Browse the repository at this point in the history
  • Loading branch information
lhkowalski committed May 2, 2024
1 parent a44ea86 commit 0946bc8
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ export default function () {
const contactHref = getRedirectUrl( 'jetpack-ai-tiers-more-requests-contact' );
const feedbackURL = getRedirectUrl( 'jetpack-ai-feedback' );
const videoLinkFeaturedImages = getRedirectUrl( 'jetpack-ai-product-page-featured-image-link' );
const videoLinkForms = getRedirectUrl( 'jetpack-ai-product-page-form-link' );
const videoLinkContentFeedback = getRedirectUrl(
'jetpack-ai-product-page-content-feedback-link'
);

// isRegistered works as a flag to know if the page can link to a post creation or not
const ctaURL = isRegistered
Expand Down Expand Up @@ -352,7 +356,7 @@ export default function () {
className={ styles[ 'product-interstitial__usage-videos-link' ] }
icon={ help }
target="_blank"
href="https://jetpack.com/support/jetpack-blocks/contact-form/#forms-with-ai"
href={ videoLinkForms }
>
{ __( 'Learn about forms', 'jetpack-my-jetpack' ) }
</Button>
Expand Down Expand Up @@ -385,7 +389,7 @@ export default function () {
className={ styles[ 'product-interstitial__usage-videos-link' ] }
icon={ help }
target="_blank"
href="https://jetpack.com/support/jetpack-blocks/jetpack-ai-assistant-block/"
href={ videoLinkContentFeedback }
>
{ __( 'Learn more', 'jetpack-my-jetpack' ) }
</Button>
Expand Down

0 comments on commit 0946bc8

Please sign in to comment.