mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-03 08:25:06 +03:00
Refactored translation function t
into object destructure
refs: https://github.com/TryGhost/Ghost/issues/16628
This commit is contained in:
parent
a123a3ceee
commit
c37c785a9f
@ -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>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user