Replace addReferralId in JS by MailPoet Url Factory

[MAILPOET-2182]
This commit is contained in:
Rostislav Wolny
2019-08-14 13:59:52 +02:00
committed by M. Shull
parent 72f5a6e02e
commit 0ca0144219
7 changed files with 34 additions and 19 deletions

View File

@@ -1,6 +1,5 @@
import React from 'react';
import MailPoet from 'mailpoet';
import addReferralId from 'referral_url_decorator.jsx';
class FreePlanAnnouncement extends React.Component {
constructor(props) {
@@ -33,7 +32,7 @@ class FreePlanAnnouncement extends React.Component {
<p>{MailPoet.I18n.t('freePlanDescription')}</p>
<a
className="button-primary"
href={addReferralId('https://www.mailpoet.com/free-plan/')}
href={MailPoet.MailPoetUrlFactory.getFreePlanUrl()}
target="_blank"
rel="noopener noreferrer"
>