From c37c785a9f0770c5a824a28a09e4b86924970e51 Mon Sep 17 00:00:00 2001 From: Sam Lord Date: Thu, 25 May 2023 14:53:38 +0100 Subject: [PATCH] Refactored translation function `t` into object destructure refs: https://github.com/TryGhost/Ghost/issues/16628 --- .../src/components/pages/AccountHomePage/AccountHomePage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/portal/src/components/pages/AccountHomePage/AccountHomePage.js b/ghost/portal/src/components/pages/AccountHomePage/AccountHomePage.js index 1e437bb82d..7cd092b313 100644 --- a/ghost/portal/src/components/pages/AccountHomePage/AccountHomePage.js +++ b/ghost/portal/src/components/pages/AccountHomePage/AccountHomePage.js @@ -26,7 +26,7 @@ export default class AccountHomePage extends React.Component { } render() { - const {member, site} = this.context; + const {member, site, t} = this.context; const supportAddress = getSupportAddress({site}); if (!member) { return null; @@ -38,7 +38,7 @@ export default class AccountHomePage extends React.Component { onClose={() => this.context.onAction('closePopup')} handleSignout={e => this.handleSignout(e)} supportAddress={supportAddress} - t={this.context.t} + t={t} /> );