From c67ec1f730bbc5217ab26f22835815ec5bea607d Mon Sep 17 00:00:00 2001 From: Rish Date: Fri, 1 May 2020 12:46:20 +0530 Subject: [PATCH] Added no-op subscribe button handling refs https://github.com/TryGhost/members.js/issues/20 - adds no-op method to handle subscribe option in account page - fixes lint --- ghost/portal/src/components/pages/AccountHomePage.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ghost/portal/src/components/pages/AccountHomePage.js b/ghost/portal/src/components/pages/AccountHomePage.js index 0ac7f50ac8..20d9994dd8 100644 --- a/ghost/portal/src/components/pages/AccountHomePage.js +++ b/ghost/portal/src/components/pages/AccountHomePage.js @@ -64,6 +64,10 @@ export default class AccountHomePage extends React.Component { // no-op } + openSubscribe(e) { + //no-op + } + renderAccountFooter() { return (
@@ -86,7 +90,7 @@ export default class AccountHomePage extends React.Component { Hey {firstname || name || email}! You are subscribed to free updates from {siteTitle}, but you don't have a paid subscription to unlock full access
- {}} brandColor={this.context.brandColor} /> + this.openSubscribe(e)} brandColor={this.context.brandColor} /> ); }