diff --git a/client/my-sites/stats/stats-card-upsell/stats-card-upsell-jetpack.tsx b/client/my-sites/stats/stats-card-upsell/stats-card-upsell-jetpack.tsx index 72a5785e9e526..17376127a5783 100644 --- a/client/my-sites/stats/stats-card-upsell/stats-card-upsell-jetpack.tsx +++ b/client/my-sites/stats/stats-card-upsell/stats-card-upsell-jetpack.tsx @@ -6,7 +6,6 @@ import { localizeUrl } from '@automattic/i18n-utils'; import clsx from 'clsx'; import { useTranslate } from 'i18n-calypso'; import React from 'react'; -import InlineSupportLink from 'calypso/components/inline-support-link'; import { SUPPORT_URL, INSIGHTS_SUPPORT_URL } from 'calypso/my-sites/stats/const'; import { useSelector } from 'calypso/state'; import getIsSiteWPCOM from 'calypso/state/selectors/is-site-wpcom'; @@ -54,29 +53,27 @@ const insightsSupportLinkWithAnchor = ( anchor: string ) => { ); }; -const utmLearnMoreLink = ( isOdysseyStats: boolean ) => { - return isOdysseyStats ? ( +const utmLearnMoreLink = () => { + return ( - ) : ( - ); }; -const useUpsellCopy = ( statType: string, isOdysseyStats: boolean ) => { +const useUpsellCopy = ( statType: string ) => { const translate = useTranslate(); switch ( statType ) { case STATS_FEATURE_DATE_CONTROL: return translate( 'Compare different time periods to analyze your site’s growth.' ); case STATS_FEATURE_UTM_STATS: return translate( - 'Generate UTM parameters and track your campaign performance data. {{link}}Learn more{{/link}}.', + 'Generate UTM parameters and track your campaign performance data. {{link}}Learn more{{/link}}', { components: { - link: utmLearnMoreLink( isOdysseyStats ), + link: utmLearnMoreLink(), }, } ); @@ -164,7 +161,7 @@ const useUpsellCopy = ( statType: string, isOdysseyStats: boolean ) => { const StatsCardUpsellJetpack: React.FC< Props > = ( { className, siteId, statType } ) => { const translate = useTranslate(); const isOdysseyStats = config.isEnabled( 'is_running_in_jetpack_site' ); - const copyText = useUpsellCopy( statType, isOdysseyStats ); + const copyText = useUpsellCopy( statType ); const siteSlug = useSelector( ( state ) => getSiteSlug( state, siteId ) ); const isWPCOMSite = useSelector( ( state ) => siteId && getIsSiteWPCOM( state, siteId ) );