0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Refactored translation function t into object destructure

refs: https://github.com/TryGhost/Ghost/issues/16628
This commit is contained in:
Sam Lord 2023-05-25 14:53:38 +01:00 committed by Sam Lord
parent a123a3ceee
commit c37c785a9f

View file

@ -26,7 +26,7 @@ export default class AccountHomePage extends React.Component {
} }
render() { render() {
const {member, site} = this.context; const {member, site, t} = this.context;
const supportAddress = getSupportAddress({site}); const supportAddress = getSupportAddress({site});
if (!member) { if (!member) {
return null; return null;
@ -38,7 +38,7 @@ export default class AccountHomePage extends React.Component {
onClose={() => this.context.onAction('closePopup')} onClose={() => this.context.onAction('closePopup')}
handleSignout={e => this.handleSignout(e)} handleSignout={e => this.handleSignout(e)}
supportAddress={supportAddress} supportAddress={supportAddress}
t={this.context.t} t={t}
/> />
</div> </div>
); );