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() {
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}
/>
</div>
);