From 6a13b0b82c6cddad378e1ddc87d865b46b7dea37 Mon Sep 17 00:00:00 2001 From: Matt Brennan Date: Thu, 1 Nov 2018 10:09:26 +0000 Subject: [PATCH] forward actionsRef to GiftArticle --- components/x-gift-article/src/lib/props-composer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/x-gift-article/src/lib/props-composer.js b/components/x-gift-article/src/lib/props-composer.js index e86e253f7..69f0d1bd9 100644 --- a/components/x-gift-article/src/lib/props-composer.js +++ b/components/x-gift-article/src/lib/props-composer.js @@ -26,6 +26,8 @@ export class GiftArticlePropsComposer { this.isGiftUrlShortened = false; this.isNonGiftUrlShortened = false; + this.actionsRef = props.actionsRef; + this.urls = { dummy: 'https://on.ft.com/gift_link', gift: undefined, @@ -68,7 +70,8 @@ export class GiftArticlePropsComposer { showCopyButton: this.showCopyButton, showShareButtons: this.showMobileShareLinks, showNativeShareButton: this.showNativeShareButton, - mobileShareLinks: this.mobileShareLinks + mobileShareLinks: this.mobileShareLinks, + actionsRef: this.actionsRef, }; const additionalProps = this.isFreeArticle ? this.showNonGiftUrlSection() : this.showGiftUrlSection();