Skip to content

Commit

Permalink
Merge pull request #767 from Financial-Times/ELES-1055-change--confir…
Browse files Browse the repository at this point in the history
…mation-copy-in-the-modal

ELES-1055 Change confirmation copy in the sharing modal
  • Loading branch information
Nazehs authored Feb 29, 2024
2 parents beedc4a + a9e1781 commit 5148360
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions components/x-gift-article/src/FooterMessage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ export const FooterMessage = ({
if (shareType === ShareType.gift) {
const redemptionLimitUnit = redemptionLimit === 1 ? 'time' : 'times'
const creditUnit = giftCredits === 1 ? 'credit' : 'credits'
const redemptionLimitMessage = `Link can be viewed ${redemptionLimit} ${redemptionLimitUnit} and is valid for 90 days.`
const redemptionLimitMessage = `Link can be viewed ${redemptionLimit} ${redemptionLimitUnit} and is valid for 90 days. ${
includeHighlights ? 'Your highlights will be visible to recipients.' : ''
}`
const creditsMessage = `You still have ${giftCredits} ${creditUnit} left this month.`

return (
Expand All @@ -74,10 +76,11 @@ export const FooterMessage = ({
}

if (shareType === ShareType.nonGift) {
const advancedSharingFTsubscribersOnlyMessage = `Only FT subscribers will be able to see the full article using this link. ${
includeHighlights ? 'Your highlights will be visible to recipients.' : ''
}`
return (
<p className="share-article-dialog__footer-message-shared-link">
Only FT subscribers will be able to see the full article using this link.
</p>
<p className="share-article-dialog__footer-message-shared-link">{advancedSharingFTsubscribersOnlyMessage}</p>
)
}

Expand Down

0 comments on commit 5148360

Please sign in to comment.