Skip to content

Commit

Permalink
Set CTA link to go to plans page
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiucelfilip committed Nov 25, 2024
1 parent 3b56865 commit 9cf8217
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { localizeUrl } from '@automattic/i18n-utils';
import { useTranslate } from 'i18n-calypso';
import { useSelector } from 'react-redux';
import blackFriday2024Illustration from 'calypso/assets/images/customer-home/illustration--black-friday-2024.jpg';
import { TASK_BLACK_FRIDAY_2024 } from 'calypso/my-sites/customer-home/cards/constants';
import Task from 'calypso/my-sites/customer-home/cards/tasks/task';
import { getSelectedSiteSlug } from 'calypso/state/ui/selectors';

import './style.scss';

const Affiliates = () => {
const translate = useTranslate();
const siteSlug = useSelector( getSelectedSiteSlug );

const title = translate( 'The Biggest Sale of the Year' );
const description = translate( 'For a limited time, we’re offering an unbeatable deal.' );
Expand All @@ -18,8 +20,7 @@ const Affiliates = () => {
title={ title }
description={ description }
actionText={ translate( 'Get the Sale' ) }
actionUrl={ localizeUrl( 'https://wordpress.com/pricing/black-friday-2024' ) }
actionTarget="_blank"
actionUrl={ `/plans/${ siteSlug }?coupon=` }
completeOnStart={ false }
illustration={ blackFriday2024Illustration }
taskId={ TASK_BLACK_FRIDAY_2024 }
Expand Down

0 comments on commit 9cf8217

Please sign in to comment.