Rewrite t to be called as a normal function

[MAILPOET-2677]
This commit is contained in:
Amine Ben hammou
2020-03-19 15:43:05 +01:00
committed by Veljko V
parent d1968dfe50
commit c1c845ab8d
13 changed files with 53 additions and 53 deletions

View File

@@ -11,12 +11,12 @@ export default function ManageSubscription() {
return (
<>
<Label
title={t`manageSubTitle`}
title={t('manageSubTitle')}
description={(
<>
{t`manageSubDescription1`}
{t('manageSubDescription1')}
<br />
{t`manageSubDescription2`}
{t('manageSubDescription2')}
</>
)}
htmlFor="subscription-manage-page"
@@ -31,13 +31,13 @@ export default function ManageSubscription() {
linkAutomationId="preview_manage_subscription_page_link"
/>
<br />
<label htmlFor="subscription-segments">{t`subscribersCanChooseFrom`}</label>
<label htmlFor="subscription-segments">{t('subscribersCanChooseFrom')}</label>
<br />
<SegmentsSelect
id="subscription-segments"
value={segments}
setValue={setSegments}
placeholder={t`leaveEmptyToDisplayAll`}
placeholder={t('leaveEmptyToDisplayAll')}
/>
</Inputs>
</>