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() {
|
||||
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…
Add table
Reference in a new issue