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:
parent
a123a3ceee
commit
c37c785a9f
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue