Skip to content

Commit

Permalink
My Jetpack: Change Jetpack AI insterstitial contact link to Jetpack R…
Browse files Browse the repository at this point in the history
…edirect (Automattic#34252)

* change email href to jetpack redirect

* changelog
  • Loading branch information
dhasilva authored Nov 22, 2023
1 parent 040ca55 commit 663ea3f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
/**
* External dependencies
*/
import { AdminPage, Button, Col, Container, Text, H3 } from '@automattic/jetpack-components';
import {
AdminPage,
Button,
Col,
Container,
Text,
H3,
getRedirectUrl,
} from '@automattic/jetpack-components';
import { __ } from '@wordpress/i18n';
import classNames from 'classnames';
import React from 'react';
Expand All @@ -26,9 +34,7 @@ export function JetpackAIInterstitialMoreRequests( { onClickGoBack = () => {} }
'Allow us to assist you in discovering the optimal plan tailored to your requirements, ensuring you can continue using the most advanced AI technology Jetpack has to offer.',
'jetpack-my-jetpack'
);
const contactEmailAddress = 'support@jetpack.com';
const contactEmailSubject = encodeURIComponent( 'Jetpack AI - Inquiry about more requests' );
const href = `mailto:${ contactEmailAddress }?subject=${ contactEmailSubject }`;
const contactHref = getRedirectUrl( 'jetpack-ai-tiers-more-requests-contact' );

return (
<AdminPage showHeader={ false } showBackground={ false }>
Expand All @@ -49,7 +55,9 @@ export function JetpackAIInterstitialMoreRequests( { onClickGoBack = () => {} }
<H3>{ title }</H3>
<Text mb={ 3 }>{ longDescription }</Text>
<div className={ styles[ 'buttons-row' ] }>
<Button href={ href }>{ __( 'Contact Us', 'jetpack-my-jetpack' ) }</Button>
<Button href={ contactHref }>
{ __( 'Contact Us', 'jetpack-my-jetpack' ) }
</Button>
<Link to={ '/' } onClick={ onClickGoBack }>
<Button variant="secondary">{ __( 'Back', 'jetpack-my-jetpack' ) }</Button>
</Link>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

My Jetpack: Change Jetpack AI insterstitial contact link to Jetpack Redirect

0 comments on commit 663ea3f

Please sign in to comment.