From 216d8b1a14843266fbe7d7cedb3cc2df57f35551 Mon Sep 17 00:00:00 2001 From: Rish Date: Fri, 1 May 2020 20:56:46 +0530 Subject: [PATCH] Added subscribe navigation to account home refs https://github.com/TryGhost/members.js/issues/20 - Adds navigation and last page setup for account home -> account plan chooser --- ghost/portal/src/components/pages/AccountHomePage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ghost/portal/src/components/pages/AccountHomePage.js b/ghost/portal/src/components/pages/AccountHomePage.js index 20d9994dd8..018e7b6e6a 100644 --- a/ghost/portal/src/components/pages/AccountHomePage.js +++ b/ghost/portal/src/components/pages/AccountHomePage.js @@ -65,7 +65,10 @@ export default class AccountHomePage extends React.Component { } openSubscribe(e) { - //no-op + this.context.onAction('switchPage', { + page: 'accountPlan', + lastPage: 'accountHome' + }); } renderAccountFooter() {